int main()
{
int *p=new int;
*p=10;
del p;
cout<<*p;
*p= 60;
cout<<*p;
}
what will be the output & why?
Answer Posted / sethuu
First output will print some garbage value because you
delete the object p and the you print.
The second one will print value 60.
Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
Define and explain about ! Operator?
What is the use of the function in c?
Is boolean a datatype in c?
Explain pointer. What are function pointers in C?
What is the significance of scope resolution operator?
What are multidimensional arrays?
What is the best way of making my program efficient?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
Apart from dennis ritchie who the other person who contributed in design of c language.
Explain what are compound statements?
What is queue in c?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What are different types of operators?
Write a program to check palindrome number in c programming?
Is c is a low level language?