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
What is the difference between typedef struct and struct?
What does %d do in c?
Why ca not I do something like this?
Write a program to reverse a given number in c?
What are Macros? What are its advantages and disadvantages?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Describe the modifier in c?
Explain what is operator promotion?
Is it possible to execute code even after the program exits the main() function?
What is sizeof return in c?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Are local variables initialized to zero by default in c?
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