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 are the general description for loop statement and available loop types in c?
Can we declare function inside main?
What are the types of type specifiers?
What is a class c rental property?
What is c mainly used for?
What is difference between union All statement and Union?
Do you know the difference between malloc() and calloc() function?
Differentiate call by value and call by reference?
Is c is a high level language?
Do you know what are bitwise shift operators in c programming?
What is difference between arrays and pointers?
What is the -> in c?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
How can I implement a delay, or time a users response, with sub-second resolution?
to find the closest pair