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

Related Articles

C | Storage Classes and Type Qualifiers | Question 7

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

Output?




#include<stdio.h>
int main()
{
   typedef int i;
   i a = 0;
   printf("%d", a);
   return 0;
}

(A) Compiler Error
(B) Runtime Error
(C) 0
(D) 1


Answer: (C)

Explanation: There is no problem with the program. It simply creates a user defined type i and creates a variable a of type i.

My Personal Notes arrow_drop_up
Last Updated : 09 Feb, 2013
Like Article
Save Article
Similar Reads