C Programming Which of the following function calculates the square of 'x' in C? power(2, x) power(x, 2) pow(2, x) sqr(x) pow(x, 2) power(2, x) power(x, 2) pow(2, x) sqr(x) pow(x, 2) ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} will print garbage value Compilation Error will print Hello World None of these. will print garbage value Compilation Error will print Hello World None of these. ANSWER DOWNLOAD EXAMIANS APP
C Programming Comment on the following?const int *ptr; Both of the above We cannot change the value pointed by ptr. We cannot change the pointer ptr itself. We can change the pointer as well as the value pointed by it. Both of the above We cannot change the value pointed by ptr. We cannot change the pointer ptr itself. We can change the pointer as well as the value pointed by it. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ extern int i; i=20; printf("%d", sizeof(i));} 2 20 Linker Error Compiler Error 2 20 Linker Error Compiler Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static int var = 5; printf("%d ", var--); if(var) main();} Infinite Loop None of These 5 4 3 2 1 5 5 5 5 5 Infinite Loop None of These 5 4 3 2 1 5 5 5 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming In which stage the following code#includegets replaced by the contents of the file stdio.h During Execution During linking During Preprocessing During Editing None of these During Execution During linking During Preprocessing During Editing None of these ANSWER DOWNLOAD EXAMIANS APP