What is the operator in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What are the advantages of c++?
wrong statement about c++ a)code removably b)encapsulation of data and code c)program easy maintenance d)program runs faster
What is an associative container in c++?
What is an adaptor class or Wrapper class?
Is c++ slower than c?
What are the weaknesses of C++?
What is RTRT tool?can it be used for automation?can it work on packet PC?
What is an iterator?
What are access specifiers in C++?
What does extern mean in a function declaration in 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?
Show the declaration for a pointer to function returning long and taking an integer parameter.