Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

C | Storage Classes and Type Qualifiers | Question 6

  • Difficulty Level : Hard
  • 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 static int *i;
  int j;
  i a = &j;
  printf("%d", *a);
  return 0;

(A) Runtime Error
(B) 0
(C) Garbage Value
(D) Compiler Error

Answer: (D)

Explanation: Compiler Error -> Multiple Storage classes for a.
In C, typedef is considered as a storage class. The Error message may be different on different compilers.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!