C Programming What is the difference between a declaration and a definition of a variable? Both can occur multiple times, but a definition must occur first. A definition occurs once, but a declaration may occur many times. A declaration occurs once, but a definition may occur many times. There is no difference between them. Both can occur multiple times, but a declaration must occur first. Both can occur multiple times, but a definition must occur first. A definition occurs once, but a declaration may occur many times. A declaration occurs once, but a definition may occur many times. There is no difference between them. Both can occur multiple times, but a declaration must occur first. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} 20 -1 19 16 17 20 -1 19 16 17 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 8 5 5 2 4 5 2 4 4 2 5 5 8 5 5 2 4 5 2 4 4 2 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? void funct(int) { printf(“Hello"); } void funct(x) { printf(“Hello"); } int funct(int x) { return x=x+1; } int funct(); None of these void funct(int) { printf(“Hello"); } void funct(x) { printf(“Hello"); } int funct(int x) { return x=x+1; } int funct(); None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);} Error 3 6 Garbage value Error 3 6 Garbage value ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program?#include#define int char void main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} sizeof(i)=2 Compiler Error sizeof(i)=1 None of These sizeof(i)=2 Compiler Error sizeof(i)=1 None of These ANSWER DOWNLOAD EXAMIANS APP