Which character is used to separate different command-line arguments?
What must be specified when constructing an object of the ostream class?
What is the output of the following code?
main()
{
int i = -0;
for(; i++; printf("%d", i));
printf("%d", i);
}
Which of the following is a properly defined structure?
What is the primary use of vector arithmetic in C++?
How many times is the i value checked in the following C code?
#include<stdio.h>
int main()
{
int i=0;
while(i<3){
i++;
printf("In while loop\n");}
}
How many times CppBuzz.com is printed?
int main()
{
int i=0;
lbl:
cout<<"CppBuzz.com";
i++;
if(i<5)
{
goto lbl;
}
return 0;
}
What is the output of the following program?
int main()
{
char str1[] = "Hello";
char str2[10];
strcpy(str2, str1);
printf("%s", str2);
}
What is the output of the following code?
int main()
{
struct strc
{
long int i;
char str[4];
};
struct strc s1;
s1.i=512;
printf("%d %d %d",s1.str[0],s1.str[1],s1.str[3]);
}
Which of the following statements about inequality between references and pointers in C++ is correct?