find the output of the following program
main()
{
int x=5, *p;
p=&x;
printf("%d",++*p);
}
Answer Posted / rahul khare
6
becoz it(++*p) will evaluate like this-
1)
*(p)- gives value at this address that is 5
2)
now increment ++5
that is 6.
| Is This Answer Correct ? | 37 Yes | 1 No |
Post New Answer View All Answers
How can you call a function, given its name as a string?
Why use int main instead of void main?
What is array of structure in c programming?
What is typedef?
What are the valid places to have keyword “break”?
Where register variables are stored in c?
Explain argument and its types.
Is python a c language?
Describe dynamic data structure in c programming language?
What are header files and what are its uses in C programming?
Is exit(status) truly equivalent to returning the same status from main?
Why flag is used in c?
How can I split up a string into whitespace-separated fields?
What is break in c?
how to find anagram without using string functions using only loops in c programming