How many standard indicators are available in C++?
Which of the following escape sequence represents tab?
a)
b)
c)
d)
How can you calculate the modulus for float values?
What is the mandatory part to present in the function pointers?
#include <bits/stdc++.h>
using namespace std;
int main() {
char a=49;
cout<< (a-'a');
return 0;
}
What will the output of the following code be?
printf("you are \"awesome");
#include<stdio.h>
int main()
{
char s[]="Abekus";
printf("%s %s %s",&s[4],&4[s],s+4);
printf("%c %c %c",*(s+1),s[1],1[s]);
return 0;
}
What will be the output of the following C++ code?
#include <stdio.h>
#include <iostream>
using namespace std;
int main()
{
int array[] = {10, 20, 30};
cout << -2[array];
return 0;
}
#include<stdio.h>
#include<stdlib.h>
int top=0;
int func()
{
char a=['a','b','c',')','d'];
return a[++top];
}
int main()
{
char b[10];
char ch2;
int i=0;
while(ch2=func()!=')')
{
b[++i]=ch2;
}
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> v;
for (int i = 1; i <= 5; i++)
v.push_back(i);
cout << v.size();
cout << endl << v.capacity();
return 0;
}