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
Does c have circular shift operators?
What is bin sh c?
Explain low-order bytes.
Why do we use int main?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
How do you declare a variable that will hold string values?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
What is the difference between test design and test case design?
can we have joblib in a proc ?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
what is reason of your company position's in india no. 1.
What is echo in c programming?
Write a code on reverse string and its complexity.
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
Tell us something about keyword 'auto'.