Advertisements
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
Solution
12 2 11 11
shaalaa.com
Pointer
Is there an error in this question or solution?