can we declare a function in side the structure?

Answer Posted / savita

It can be possible in C++, but not in C.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are pointers really faster than arrays?

564


What are run-time errors?

600


What is memory leak in c?

637


All technical questions

1511


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1522






What does 3 mean in texting?

617


hi, which software companys will take,if d candidate's % is jst 55%?

1664


If you know then define #pragma?

676


What is a union?

611


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

644


Are there namespaces in c?

570


What is the difference between int main and void main?

575


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

660


Difference between constant pointer and pointer to a constant.

613


What is a memory leak? How to avoid it?

577