W1_Programming-Qs 3:
Consider the following program and fill in the blanks at LINE-1 to define a function pointer type
Fun_Ptr such that it can be used to create a pointer to point add() function. At LINE-2 create
function pointer fp to point to function add() such that it satisfies the given test cases.
PROGRAM:
typedef void (*Fun_Ptr)(int,int); // LINE-1
Fun_Ptr fp=&add; // LINE-2
Disclaimer: Here you can find all nptel assignment solutions related to CS stream.These may help you for your assignment.The answers are only for verification.You cannot copy these directly from the post(code of conduct of NPTEL).These is not 100% correct solutions.
I need Programming in C++ Week-2 Programs solution Sir
ReplyDeleteWEEK 2 OF PROGRAMMING IN CPP HAS BEEN UPLOADED
ReplyDelete