Which of the following are valid C keywords?
#define is used to
What is the final value of the variable no in the following program?
Can the register storage class be specified for global variables?
Which function is used to check whether a character is printable on console?
A package is a namespace for organizing __________ and interfaces in a logical manner.
What will be the Output of the Following Code?
int main()
{
int n;
int x = 1;
cin>>n;
if(n = x){
cout<<"OK";
}
else{
cout<<"NO";
}
return 0;
}
What is the output of the following program?
int main()
{
char arr[20];
int i;
for(i=0;i<=18;i++)
i[arr]='V';
i[arr]='\0';
printf("%s",arr);
}
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int gcd (int a, int b)
{
int temp;
while (b != 0)
{
temp = a % b;
a = b;
b = temp;
}
return(a);
}
int main ()
{
int x = 15, y = 25;
cout << gcd(x, y);
return(0);
}
What will be the output when the following C program is compiled and executed?
#include "stdio.h"
int main()
{
int j = 0;
for ( ; j < 10 ; )
{
if (j < 10)
printf("Geeks %d", j++);
else
continue;
printf(" Quiz");
}
return 0;
}
OnSite
1 Openings
FullTime
Posted 17 days ago