What is doubly linked list in c++?
What is function overloading c++?
describe private access specifiers?
How do I make turbo c++ full screen?
What is the use of class in c++?
Comment on local and global scope of a variable.
Difference between delete and delete[]?
5 Answers Infosys, TCS, Virtusa,
Hi i need to Acess a variable "int Intval" in the below mentioned code .How to Access it guys i am waiting for your reply
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?
What's the order in which the objects in an array are destructed?
what Is DCS ? what i will get benefit when i did?
What are vtable and vptr?
What are the benefits of pointers?