C Programming What is the difference between a declaration and a definition of a variable? 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 declaration occurs once, but a definition may occur many times. A definition occurs once, but a declaration 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 declaration occurs once, but a definition may occur many times. A definition occurs once, but a declaration may occur many times. 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 right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} Prints the value of 0 one time only. The loop will run infinitely many times. There will be a compilation error reported. A run time error will be generated. The program will not enter into the loop. Prints the value of 0 one time only. The loop will run infinitely many times. There will be a compilation error reported. A run time error will be generated. The program will not enter into the loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? int funct(int x) { return x=x+1; } None of these void funct(x) { printf(“Hello"); } void funct(int) { printf(“Hello"); } int funct(); int funct(int x) { return x=x+1; } None of these void funct(x) { printf(“Hello"); } void funct(int) { printf(“Hello"); } int funct(); ANSWER DOWNLOAD EXAMIANS APP
C Programming The output of the following program is:#define f(g,g2) g##g2void main(){ int var12=100; printf("%d", f(var,12));} 100 g##g2 10012 Runtime error Syntax error 100 g##g2 10012 Runtime error Syntax error ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program. void main() { int i=01289; printf("%d", i); } 1289 Syntax error 0713 0289 713 1289 Syntax error 0713 0289 713 ANSWER DOWNLOAD EXAMIANS APP