int x;
int y = 10;
const int * p = &y;
x = *p;
*p = x;
printf(*p);
What statement causes an enclosing for, range-for, while or do-while loop or switch statement to terminate?
What is a string object in C++?
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int p = 0;
double b = p++ + ++p + p--;
printf("%d", p);
}
Forward referencing is generally required -
Which member function of a class can’t modify its objects attributes?
What is the output of the following C code?
#include<stdio.h>
#define fun(x) x*x
int main()
{
printf("%d\n",fun(10));
}
What is the output of this program?
#include < iostream >
using namespace std;
int main()
{
int a = 5, b = 10, c = 15;
int *arr[ ] = {&a, &b, &c};
cout << arr[1];
return 0;
}
#include <iostream>
using namespace std;
int main ()
{
int n=10;
mylabel:
cout << n << ", ";
n--;
if (n>0) goto mylabel;
cout << "liftoff!\n";
}