retagged by
739 views
1 votes
1 votes
What is the output of following program

#include<stdio.h>

int main()
{
    short int i=20;
    char c=97;
    printf("%d,%d,%d\n",sizeof(i),sizeof(c),sizeof(c+i));
    return 0;
}

(A)2,1,2

(B)2,1,1

(C)2,1,4

(D)2,2,8
retagged by

1 Answer

Related questions

0 votes
0 votes
1 answer
3
Harikesh Kumar asked Jun 3, 2017
6,414 views
If the address of A and A are 1000 and 1010 respectively and each element occupies 2 byte then the array has been stored in which order ?1.row major 2.column major 3....
3 votes
3 votes
1 answer
4
Ravi prakash pandey asked Nov 12, 2017
662 views
what wil be sizeof(void)and sizeof(void *)