C Programming What is the difference between a declaration and a definition of a variable? A declaration occurs once, but a definition may occur many times. A definition occurs once, but a declaration may occur many times. Both can occur multiple times, but a definition must occur first. Both can occur multiple times, but a declaration must occur first. There is no difference between them. A declaration occurs once, but a definition may occur many times. A definition occurs once, but a declaration may occur many times. Both can occur multiple times, but a definition must occur first. Both can occur multiple times, but a declaration must occur first. There is no difference between them. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i = -1; +i; printf("i = %d, +i = %d", i, +i);} i = 1, +i = 1 i = -1, +i = 1 i = -1, +i = -1 None of These i = 1, +i = 1 i = -1, +i = 1 i = -1, +i = -1 None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following program?#includeint c[10] = {1,2,3,4,5,6,7,8,9,10}; main(){ int a, b=0; for(a=0;a<10;++a) if(c[a]%2 == 1) b+=c[a]; printf("%d", b);} 24 30 None of these 25 20 24 30 None of these 25 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program code?#includevoid main(){ int i = 10; void *p = &i; printf("%f", *(float *)p);} 10 None of these. Error 0.000000 10 None of these. Error 0.000000 ANSWER DOWNLOAD EXAMIANS APP
C Programming The library function used to find the last occurrence of a character in a string is laststr() strrchr() None of these strstr() strnstr() laststr() strrchr() None of these strstr() strnstr() ANSWER DOWNLOAD EXAMIANS APP
C Programming What number will z in the sample code given below?int z, x=5, y= -10, a=4, b=2;z = x++ - --y*b/a; 10 9 6 11 5 10 9 6 11 5 ANSWER DOWNLOAD EXAMIANS APP