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 we can make 3d venturing graphics on outer interface
How can I prevent another program from modifying part of a file that I am modifying?
What is character set?
What is the difference between memcpy and memmove?
write a program to rearrange the array such way that all even elements should come first and next come odd
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
If null and 0 are equivalent as null pointer constants, which should I use?
How to explain the final year project as a fresher please answer with sample project
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
What is the difference between char array and char pointer?
Is c high or low level?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
How can you check to see whether a symbol is defined?
How to write a code for reverse of string without using string functions?
What is static volatile in c?