How do you declare A pointer to a function which receives nothing and returns nothing
No Answer is Posted For this Question
Be the First to Post Answer
What is one dimensional array in c++?
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
Briefly describe a B+ tree. What is bulk loading in it?
Will this c++ program execute or not?
What is difference between malloc()/free() and new/delete?
Write about a nested class and mention its use?
What you know about structures in C++?
0 Answers Agilent, ZS Associates,
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 is the best c c++ compiler for windows?
What does override mean in c++?
Why do we use double in c++?
What is #include sstream?