C Programming What will be the output of following program code?#include int main(void){ char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d", p); return 0;} 6 9 Error 5 None of these 6 9 Error 5 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} -2 2 1 Error -2 2 1 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here} None of These Garbage Value 1 10 None of These Garbage Value 1 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program code?#include void main(){ int i=3, *j, **k; j = &i; k = &j; printf("%d%d%d", *j, **k, *(*k));} 000 433 333 Garbage Value 444 000 433 333 Garbage Value 444 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? int funct(); void funct(x) { printf(“Hello"); } void funct(int) { printf(“Hello"); } int funct(int x) { return x=x+1; } None of these int funct(); void funct(x) { printf(“Hello"); } void funct(int) { printf(“Hello"); } int funct(int x) { return x=x+1; } None of these ANSWER DOWNLOAD EXAMIANS APP
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