C Programming What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*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(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 5 5 2 4 4 2 4 5 5 5 5 2 5 5 2 4 4 2 4 5 5 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of given program if user enter value 99?#includevoid main(){int i;printf("Enter a number:");scanf("%d", &i); // 99 is given as input.if(i%5 == 0){printf("nNumber entered is divisible by 5"); }} Enter a number:99 Number is divisible by 5 Enter a number:99 complier error Run time error Enter a number:99 Number is divisible by 5 Enter a number:99 complier error Run time error 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]);} Compiler Error mmmm nnnn aaaa None of These mmm nnn aaa Compiler Error mmmm nnnn aaaa None of These mmm nnn aaa ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?void main(){ int a, b, c, d; a = 3; b = 5; c = a, b; d = (a, b); printf("c=%d d=%d", c, d);} c=3 d=5 c=5 d=3 c=5 d=5 c=3 d=3 c=3 d=5 c=5 d=3 c=5 d=5 c=3 d=3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of this program on an implementation where int occupies 2 bytes?#include void main(){ int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j);} i=5 j=2 the behavior is undefined i=4 j=2 i=3 j=2 i=5 j=2 the behavior is undefined i=4 j=2 i=3 j=2 ANSWER DOWNLOAD EXAMIANS APP