Top

Discussion

If char=1, int=4, and float=4 bytes size, What will be the output of the program ?

#include

int main()
{
    char ch = 'A';
    printf("%d, %d, %d", sizeof(ch), sizeof('A'), sizeof(3.14f));
    return 0;
}

 

  • A.1, 2, 4
  • B.1, 4, 4
  • C.2, 2, 4
  • D.2, 4, 8

Answer: B

No answer description available for this question.

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

Post your comment