What is the value of ceil(-2.8)?
What is the expected output of the given C program?
Which of the following operators cannot be used with pairs?
How many characters are available in the file 'newname.txt'?
Which programming concept allows you to reuse previously written code?
What is the output of the following C program?
main()
{
static int a[2][2] = {2, 3, 0, 0};
printf("%d%d%d%d", a[0][0], a[0][1], a[1][0], a[1][1]);
}
What is the output of the following C++ code?
#include<bits/stdc++.h>
using namespace std;
int main()
{
int arr[10];
int r = sizeof(arr)/sizeof(int);
cout<<r*2;
return 0;
}
Choose the right option.
string* x, y;
What will be the output of the following C code?
#include <stdio.h>
int main()
{
printf("before continue");
continue;
printf("after continue");
}
What will be the output?
#include <stdio.h>
int main(void)
{
char str1[] = "Hello. How are you?";
char str2[21];
int pos;
for(pos=0; pos<21; pos++)
{
str2[pos] = str1[pos];
}
printf("str1: %s, str2: %s", str1, str2);
return 0;
}