MCQ
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
Advertisement Remove all ads
Solution
12 2 11 11
Concept: Pointer
Is there an error in this question or solution?
Advertisement Remove all ads
APPEARS IN
Advertisement Remove all ads
Advertisement Remove all ads