407 views
0 votes
0 votes
#include <stdio.h>

int main()
{
 int a=2;
 int b=4;
 double c;
 printf("%d",sizeof(c=a+b));
  
}

In the above program, sizeof () operator will not evaluate the expression passed. But how it will return the size of double

Please log in or register to answer this question.

Related questions

1 votes
1 votes
1 answer
1
Shiva Sagar Rao asked Feb 16, 2019
642 views
#include <stdio.h int main() { int a = 1; char d[] = "ab"; printf("%d", sizeof(a+d)); return 0; }Explain the Output
1 votes
1 votes
1 answer
2
radha gogia asked Jul 10, 2018
1,661 views
If I have an array :int a [3][4] ; How to evaluate below Outputs ? 1. sizeof(*a) 2.sizeof( a) 3. sizeof(a) Please explain precisely .
1 votes
1 votes
2 answers
3
raushan sah asked May 24, 2018
1,130 views
#include<stdio.h int main() { char *s="\123456789\n"; printf("%d", sizeof(s)); return 0; }why this piece of code gives output $8$please explain. thanx
3 votes
3 votes
1 answer
4
Lakshman Bhaiya asked Apr 23, 2018
952 views
Q)What is the output of the following C program fragment?Assume size of an integer is 4 Bytes#include<stdio.h>int main(){int i = 5;int var = sizeof( i++);printf("%d %d",i...