What is the size of a boolean variable in C++?
#include
How to access and edit data in data file handling using structures
To which type of class can RTTI (Run-Time Type Information) be applied?
extern int s;
int t;
static int u;
main()
{
}
Which of s, t and u are available to a function present in another file?
What is the equivalent of the calloc(m, n) function?
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
enum test
{
A = 32, B, C
};
int main()
{
cout << A << B<< C;
return 0;
}
Which of the following statements are not a rule of the variables in C?
What is the purpose of using the static keyword before a function declaration in C?
What will be the output of the following code?
void fn(char * str)
{
str = (char *) malloc (sizeof(char) * 8);
sprintf(str, "Hello");
}
int main()
{
char * str = NULL;
fn(str);
printf("str address = %p\n", str);
}