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
In a byte, what is the maximum decimal number that you can accommodate?
What are the complete rules for header file searching?
What are bitwise shift operators in c programming?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
Explain what is meant by 'bit masking'?
Differentiate between a structure and a union.
What is the need of structure in c?
What does double pointer mean in c?
Can a pointer be volatile in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Are local variables initialized to zero by default in c?
What is a keyword?
write a program to display all prime numbers
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What is the best way to store flag values in a program?