Sail E0 Webinar
Question


If the size of pointer is 32 bits What will be the output of the program ?


#include<stdio.h>
int main()
{
char a[] = "Visual C++";
char *b = "Visual C++";
printf("%d, %d\n", sizeof(a), sizeof(b));
printf("%d, %d", sizeof(*a), sizeof(*b));
return 0;
}
A. 10, 2
2, 2
B. 10, 4
1, 2
C. 11, 4
1, 1
D. 12, 2
2, 2
Options:
A .  t, t
B .  k, k
C .  n, k
D .  m, f
Answer: Option B

Answer: (C)

No answer description available for this question. 



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers