Select the Correct Option from Multiple Choice Question.Void Main() {Char A[]= “Hello World”;Char *P;P=A;Printf(“\N%D%D%D%D”,Sizeof(A),Sizeof(P),Strlen(A),Strlen(P) ); }
Advertisements
Question
Select the correct option from multiple choice question.
void main() {
char a[]= “Hello world”;
char *p;
p=a;
printf(“\n%d%d%d%d”,sizeof(a),sizeof(p),strlen(a),strlen(p) ); }
Options
11 11 10 10
10 10 10 10
12 12 11 11
12 2 11 11
MCQ
Advertisements
Solution
12 2 11 11
shaalaa.com
Pointer
Is there an error in this question or solution?
