int main()
{
int *p=new int;
*p=10;
del p;
cout<<*p;
*p= 60;
cout<<*p;
}
what will be the output & why?
Answer Posted / hemang
There will be error because del is used instead of delete. in c++ delete is the keyword not del. delete is used to delete an object.
So program will not run....
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What is the hardest programming language?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
Is stack a keyword in c?
Give basis knowledge of web designing ...
What is formal argument?
Describe the difference between = and == symbols in c programming?
What is c++ used for today?
How to write c functions that modify head pointer of a linked list?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
Explain what is wrong with this statement? Myname = ?robin?;
Is anything faster than c?
What are c preprocessors?
What does c value mean?