in Programming retagged by
175 views
0 votes
0 votes
Consider a string is stored in a word addressable memory where each word is of 4 Bytes. If the string starts at 100 and ends at 104 then which of the following can be the possible string(s) that can be stored.

A)STRUCTURE

B)UNION

C)POINTER

D)FUNCTION
in Programming retagged by
175 views

4 Comments

brother see this.

The string length in C is equal to the count of all the characters in it (except the null character "\0"). For Example, the string "gfddf" has a length of 5 and the string "4343" has a length of 4.

refer → https://www.scaler.com/topics/string-length-in-c/ 

while outputting the string length it excludes ‘\0’.

0
0
Correct. My bad and thanks :)
0
0

@Lakshman Patel RJIT

Sir, please tell is it something wrong with this question?? or with our reasoning?

is this question wrongly framed ?

1
1

Please log in or register to answer this question.