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
What is the explanation for cyclic nature of data types in c?
Implement bit Array in C.
Explain about the constants which help in debugging?
What is volatile variable in c?
What does double pointer mean in c?
Can a file other than a .h file be included with #include?
What are two dimensional arrays alternatively called as?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What are the advantages and disadvantages of c language?
What is the difference between #include
What is the general form of function in c?
How can I send mail from within a c program?
What is atoi and atof in c?
How are Structure passing and returning implemented by the complier?
Do you know what are the properties of union in c?