Which of the following is called insertion/put to operator?
#include<stdio.h>
int main()
{
int i=1;
printf("%d",(++i)++);
return 0;
}
#include<stdio.h>
int main()
{
int i=0;
do
{
printf("Abekus");
i=i++;
}
while(i<5);
return 0;
}
What will be the output?
#include "stdio.h"
int main()
{
int x = 50;
int y = 60;
printf("%d %d", x++, y--);
printf("#%d %d", ++x, --y);
return 0;
}
What will be the output of the following C++ code?
#include<bits/stdc++.h>
using namespace std;
int main()
{
int arr[5];
for(int i=0;i<5;i++) {
arr[i]=i;
}
cout<<arr[5];
return 0;
}
The Unified Modeling Language (UML) is:
What will be the output of the following C code?
#include <stdio.h>
struct student
{
int no;
char name[20];
};
int main()
{
struct student s;
s.no = 8;
printf("hello");
return 0;
}
What are tuples in C++?
What is the output of the following C program?
void main()
{
int a[5] = {13, 14, 15, 16, 17};
printf("%d %d\n", a[a[0] - 10], a[1]);
printf("%d %d", a[a[1] - 10] > (a[0] + 2) ? (a[0] << 1) + 1 : a[0], a[4]);
}
What is the output of the following code?
int main() {
int i;
for (i=0;i<2;i++)
{
switch(i)
{
case 0:i+=2;
case 1:i+=1;
case 5:i+=2;
default:i+=3;
break;
}
printf("%d",i);
}
}