Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

C | Misc | Question 5

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

Assume that the size of an integer is 4 bytes. Predict the output? 

C




#include <stdio.h>
int fun()
{
    puts(\" Hello \");
    return 10;
}
 
int main()
{
    printf(\"%d\", sizeof(fun()));
    return 0;
}


(A)

4

(B)

Hello 4

(C)

4 Hello

(D)

Compiler Error


Answer: (A)

Explanation:

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads