What is the use of data hiding?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between a pointer and a link in c ++?
Explain the isa and hasa class relationships. How would you implement each?
What is cin clear () in c++?
Explain terminate() function?
Define a nested class. Explain how it can be useful.
what is scupper?
Explain the difference between c++ and java.
1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout<<v; } a) Outputs 12 b) Outputs 10 c) Outputs the address of v
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 are all predefined data types in c++?
Can we make any program in c++ without using any header file and what is the shortest program in c++.
What flag means?