C Programming Which of the following function calculates the square of 'x' in C? power(x, 2) pow(2, x) sqr(x) power(2, x) pow(x, 2) power(x, 2) pow(2, x) sqr(x) power(2, x) pow(x, 2) ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ struct xx { int x=3; char name[] = "hello"; }; struct xx *s = malloc(sizeof(struct xx)); printf("%d", s->x); printf("%s", s->name); } 3 hello Linking error Compiler Error None of these 3 hello Linking error Compiler Error None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming C preprocessor Takes care of macros Acts before compilation Takes care of include files All of these Takes care of conditional compilation Takes care of macros Acts before compilation Takes care of include files All of these Takes care of conditional compilation ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char s[]="man"; int i; for(i=0; s[i]; i++) printf("%c%c%c%c ", s[i], *(s+i), *(i+s), i[s]);} None of These mmmm nnnn aaaa Compiler Error mmm nnn aaa None of These mmmm nnnn aaaa Compiler Error mmm nnn aaa ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} a = 3, c = 8 b = 4, c = 6 b = 3, c = 6 a = 4, c = 6 a = 4, c = 8 a = 3, c = 8 b = 4, c = 6 b = 3, c = 6 a = 4, c = 6 a = 4, c = 8 ANSWER DOWNLOAD EXAMIANS APP
C Programming The library function used to find the last occurrence of a character in a string is strstr() strrchr() laststr() None of these strnstr() strstr() strrchr() laststr() None of these strnstr() ANSWER DOWNLOAD EXAMIANS APP