Top

Discussion

What will be the output of the following program?

#include< stdio>

int main()
{
static unsigned int a = 23;
register unsigned char c = ‘R’;
auto long unsigned q = 345L;
static long signed p = 345L;
printf(“a = %u c = %c”, a ,c);
printf(“\nq = %ld p = %ld”, q, p);
return 0;
}

 

  • A.a=23 c=R q = 345 p = 345
  • B.A=23 c=R 0 0
  • C.Garbage value
  • D.A=23 c=R q = 345 p = 345

Answer: A

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment