• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

C Quiz - 106 | Question 5

For the following “typedef” in C, pick the best statement C
typedef int INT, *INTPTR, ONEDARR[10], TWODARR[10][10];

(A)

It will cause compile error because typedef is being used to define multiple aliases of incompatible types in the same statement.

(B)

“INT x” would define x of type int. Remaining part of the statement would be ignored.

(C)

“INT x” would define x of type int and “INTPTR y” would define pointer y of type int *. Remaining part of the statement would be ignored.

(D)

“INT x” would define x of type int. “INTPTR y” would define pointer y of type int *. ONEDARR is an array of 10 int. TWODARR is a 2D array of 10 by 10 int.

(E)

“INT x” would define x of type int. “INTPTR *y” would define pointer y of type int **. “ONEDARR z” would define z as array of 10 int. “TWODARR t” would define t as array of 10 by 10 int.

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments