Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

C | Storage Classes and Type Qualifiers | Question 7

  • Difficulty Level : Basic
  • Last Updated : 09 Feb, 2013


Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check out our Data Structures in C course to start learning today.

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
Recommended Articles
Page :