Write any small program that will compile in "C" but not
in "C++"
Answer Posted / pulkit dave
void main()
{
int class=28;
printf("%d",class);
}
it works...
[class] :p
| Is This Answer Correct ? | 18 Yes | 3 No |
Post New Answer View All Answers
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.
What are c++ manipulators?
What is the latest version on c++?
Define a nested class.
How can you tell what shell you are running on unix system?
Is there a sort function in c++?
What is token c++?
Explain the differences between private, public and protected and give examples.
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include What does flush do? What are c++ redistributables? What is the difference between the indirection operator and the address of oper-ator? How to defines the function in c++? What is a dangling pointer in c++?