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

Answer Posted / dilip

6

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use & in c?

594


Why c is called top down?

629


How can I pad a string to a known length?

613


What does a function declared as pascal do differently?

608


Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

606






What are the disadvantages of external storage class?

592


In which header file is the null macro defined?

857


What is the difference between malloc calloc and realloc in c?

650


What is the correct code to have following output in c using nested for loop?

614


What is a lvalue

665


What is zero based addressing?

718


Where static variables are stored in c?

589


What is the difference between pure virtual function and virtual function?

653


What is printf () in c?

579


What is type qualifiers?

664