Predict the output or error(s) for the following:
25. main()
{
printf("%p",main);
}
Answer Posted / surenda pal singh chouhan
Some address will be printed.
Explanation:
Function names are just addresses (just like
array names are addresses).
main() is also a function. So the address of function main
will be printed. %p in printf specifies that the argument
is an address. They are printed as hexadecimal numbers.
26. main()
| Is This Answer Correct ? | 28 Yes | 2 No |
Post New Answer View All Answers
define string ?
How to write a multi-statement macro?
What is array of structure in c programming?
What are the different types of errors?
Explain how can a program be made to print the name of a source file where an error occurs?
Write a program to implement queue.
What is the difference between union and anonymous union?
Hi can anyone tell what is a start up code?
What is the difference between int main and void main in c?
Why does not c have an exponentiation operator?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
What is c programing language?
What is chain pointer in c?
How can I list all of the predefined identifiers?