C Programming Which of the following function calculates the square of 'x' in C? sqr(x) pow(x, 2) power(2, x) power(x, 2) pow(2, x) sqr(x) pow(x, 2) power(2, x) power(x, 2) pow(2, x) ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the correct value to return to the operating system upon the successful completion of a program? -1 2 1 Program do no return a value. -1 2 1 Program do no return a value. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Segmentation fault/runtime crash 10 Compiler time error Undefined behavior Segmentation fault/runtime crash 10 Compiler time error Undefined behavior ANSWER DOWNLOAD EXAMIANS APP
C Programming What does the following declaration mean?int (*ptr)[10]; ptr is an array of 10 integers ptr is an pointer to array ptr is a pointer to an array of 10 integers ptr is array of pointers to 10 integers ptr is an array of 10 integers ptr is an pointer to array ptr is a pointer to an array of 10 integers ptr is array of pointers to 10 integers ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? int funct(int x) { return x=x+1; } void funct(x) { printf(“Hello"); } None of these int funct(); void funct(int) { printf(“Hello"); } int funct(int x) { return x=x+1; } void funct(x) { printf(“Hello"); } None of these int funct(); void funct(int) { printf(“Hello"); } ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} h hi Garbage Value Error hi followed by garbage value h hi Garbage Value Error hi followed by garbage value ANSWER DOWNLOAD EXAMIANS APP