Advertisement Remove all ads

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) ); } - Structured Programming Approach

Advertisement Remove all ads
Advertisement Remove all ads
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
Share
Notifications

View all notifications


      Forgot password?
View in app×