What will be the output of the following C++ code?
Which of the following visibility labels is invalid while inheriting a class?
Which header file is used for reading and writing to a file?
What is the correct syntax for an operator conversion?
What is the value of the variable i after the following C code is executed?
i = scanf("%d %d", &a, &b);
What will happen if a class is not having any name?
What will happen when defining the enumerated type?
Why is the #pragma warn directive used in the preprocessor?
What will be the output?
#include <stdio.h>
int main()
{
char *_ptr = malloc(100);
strcpy(_ptr, "abc");
memset(_ptr, NULL, sizeof(_ptr));
if(*_ptr == NULL)
printf("NULL");
else
printf("%s",_ptr);
return 0;
}
When is the "void" keyword used in a function?