can we declare a function inside the structure?
ex: struct book
{
int pages;
float price;
int library(int,float);
}b;
is the above declaration correct? as it has function
declaration?
Answer Posted / srinivasroyal
In CPP the above declaration is correct. But in case of C it
is not.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What is 02d in c?
Explain the use of keyword 'register' with respect to variables.
What is the purpose of sprintf?
What header files do I need in order to define the standard library functions I use?
Explain the Difference between the New and Malloc keyword.
What do you mean by keywords in c?
Why ca not I do something like this?
When should you not use a type cast?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
What is bin sh c?
What is a struct c#?
Can you please explain the difference between exit() and _exit() function?
Is fortran still used in 2018?
how is the examination pattern?