Can I learn c++ without learning c?
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?
Why is c++ still popular?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
Where is atoi defined?
What are the general quetions are in DEna bank manager IT/System interviews?
Differences between private, protected and public and give examples.
Explain what you mean by a pointer.
What are the different data types present in C++?
what kind of projects are suitable for c and c++
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
What are the advantages of using const reference arguments in a function?
Explain the differences between list x; & list x();.