Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



Which of the following is correct way to declare a functional pointer in C ?





Solution

Function pointer syntax:


return_type (*pointer_name)(arguments);


Example:


int (*func)(int,int);


Meaning:


func is a pointer


pointing to a function


returning int


taking two int parameters


Thus correct declaration:


int (*func)(int,int);



Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...