Open In App
Related Articles

C | Storage Classes and Type Qualifiers | Question 7

Improve Article
Save Article
Like Article


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.

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 09 Feb, 2013
Like Article
Save Article
Similar Reads