Computer Science, asked by jatinderk2945, 1 year ago

A character in new programming language is stored in 2 bytes. a string is represented as an array of characters. a word is stored as a string. each byte in the memory has an address. the word "mahatma gandhi" is stored in the memory with starting address 456. the letter 'd' will be at which memory address

Answers

Answered by writersparadise
19
Since the options are not given, I am giving the answer based on a similar question and options that have been given on a different website.

The correct answer is - 478.

According to the given data, every character in the string array has been stored in 2 bytes. The starting address of the memory is given to be 456. So,  by simple calculation, we get that the character 'D' will be stored at the memory address of 478.
Answered by vks199488
2

Answer should be 480 as space will also be considered as a charactet

Similar questions