C Quiz – 107 | Question 2

Which of the followings is correct for a function definition along with storage-class specifier in C language?
(A) int fun(auto int arg)
(B) int fun(static int arg)
(C) int fun(register int arg)
(D) int fun(extern int arg)
(E) All of the above are correct.


Answer: (C)

Explanation: As per C standard, “The only storage-class specifier that shall occur in a parameter declaration is register.” That’s why correct answer is C.

Quiz of this Question

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.