C Programming and Technical Programming Program

When we mention the prototype of a function?
Options
1) Defining
2) Declaring
3) Prototyping
4) Calling

Read Solution (Total 9)

C Other Question

What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

Options
1) The element will be set to 0.
2) The compiler would report an error.
3) The program may crash if some important data gets overwritten.
4) The array size would appropriately grow.
What will be the output of the program?
#include
int main()
{
int i=-3, j=2, k=0, m;
m = ++i && ++j && ++k;
printf("%d, %d, %d, %dn", i, j, k, m);
return 0;
}
Options
1) -2, 3, 1, 1
2) 2, 3, 1, 2
3) 1, 2, 3, 1
4) 3, 3, 1, 2