C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 4 5 5 5 2 4 5 2 5 5 2 4 4 5 5 5 2 4 5 2 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50} 10..10 0 Error 10..50 10..10 0 Error 10..50 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function calculates the square of 'x' in C? sqr(x) power(x, 2) pow(x, 2) pow(2, x) power(2, x) sqr(x) power(x, 2) pow(x, 2) pow(2, x) power(2, x) ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; p="Hello"; printf("%c", *&*p);} H None of These Hello Some Address will be printed H None of These Hello Some Address will be printed ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} garbage values 1 1 1 Error 0 0 0 garbage values 1 1 1 Error 0 0 0 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. A declaration occurs once, but a definition may occur many times. A definition occurs once, but a declaration may occur many times. Both can occur multiple times, but a declaration must occur first. Both can occur multiple times, but a definition must occur first. There is no difference between them. A declaration occurs once, but a definition may occur many times. A definition occurs once, but a declaration may occur many times. Both can occur multiple times, but a declaration must occur first. Both can occur multiple times, but a definition must occur first. ANSWER DOWNLOAD EXAMIANS APP