char ch;
int i;
ch = 'G';
i = ch - 'A';
printf("%d", i);
How many types of read and write tests are typically available?
What is the syntax for declaring a forward_list?
What is the output of the following program?
int main()
{
int v1 = 4, v2 = 6;
v2 = v2 || v1++ && printf("Hello");
printf("%d %d", v1, v2);
}
What are Iterators?
In the following code snippet, character pointer str holds a reference to the string ___________
char *str = "Sanfoundry.com\0" "training classes";
What will be the output of the following C code?
#include <stdio.h>
int main()
{
char *_ptr = malloc(100);
if(_ptr!=NULL)
free(_ptr);
_ptr=NULL;
free(_ptr);
return 0;
}
Which of the following statement is correct?
Which of the following statements about preprocessors in C/C++ are correct?
In a C program, which of the following are valid definitions of integer variables?