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)
-
- declaring-it is used in the tume of declare any variable
- 9 years agoHelpfull: Yes(1) No(0)
- 2)Declaring
- 9 years agoHelpfull: Yes(0) No(0)
- Declaring is the term used
- 8 years agoHelpfull: Yes(0) No(0)
- prototype is another for defining
- 8 years agoHelpfull: Yes(0) No(0)
- option2 ,, in declaration
- 8 years agoHelpfull: Yes(0) No(0)
- 2. Declaring
- 7 years agoHelpfull: Yes(0) No(0)
- 2) is ans. prototype of a function means declaring.
- 7 years agoHelpfull: Yes(0) No(0)
- 22)Declaring
when we declaring a function that time we mention the prototype of the function. - 6 years agoHelpfull: Yes(0) No(0)
- 2) Declaring
- 5 years agoHelpfull: Yes(0) No(0)
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