Which operator is used with the this pointer to access members of a class?
#include<stdio.h>
int main();
void main()
{
printf("okay") ;
}
Is the following C code structure declaration legal?
struct srt
{
int num;
struct srt *var;
};
What are instances of a class with a member function operator() called?
Which function is used to read a specified number of elements from a file?
Is the following statement True or False?
The following two statements are equivalent.
char x[] = "123";
char *x = "123";
#include<stdio.h>
int main()
{
int a = 5;
switch(a)
{
default:
a = 4;
case 6:
a--;
case 5:
a = a+1;
case 1:
a = a-1;
}
printf("%d n", a);
return 0;
}
#include <iostream>
using namespace std;
int main()
{
char *ptr;
char Str[] = "abcdefg";
ptr = Str;
ptr += 5;
cout << ptr;
return 0;
}
Which of the following statement is correct?
What is the purpose of the puts() function?