Posts

Spoken Tutorial C test answer

1)    In the following statements, what does   6   specify?  int num[ 6 ];  num[ 6 ]=21; Select one: In the first statement,  6  specifies a particular element, whereas in the second statement it specifies an array size. In the first statement,  6  specifies a particular element, whereas in the second statement it specifies a type. In both the statements,  6  specifies an array size. In the first statement,  6  specifies an array size, whereas in the second statement it specifies a particular element of an array. 2)  What will be the   output   of the following program? #include<stdio.h>  int main()  {      char j=1;      while(j < 5)      {          printf("%d, ", j);          j = j+1;      }      printf("\n");      return 0;  } Select one: 1 2 3 4 1, 2, 3, 4, 4, 3, 2, 1 2 3 4 5 6 3)  What will be   output   when you will execute following c code?   #include<stdio.h> void main(){     int a=5,b=10;     if(a < b)          printf("%d  %d",+
Recent posts