find the output of the following program
main()
{
int x=5, *p;
p=&x;
printf("%d",++*p);
}

Answer Posted / visalakshi

yes it is six

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between typedef struct and struct?

592


What does %d do in c?

537


Why ca not I do something like this?

583


Write a program to reverse a given number in c?

594


What are Macros? What are its advantages and disadvantages?

638






Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

654


Describe the modifier in c?

597


Explain what is operator promotion?

630


Is it possible to execute code even after the program exits the main() function?

807


What is sizeof return in c?

611


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

669


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

727


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

1621


Are local variables initialized to zero by default in c?

545


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3245