main()
{
int i =0;j=0;
if(i && j++)
printf("%d..%d",i++,j);
printf("%d..%d,i,j);
}
Answer / susie
Answer :
0..0
Explanation:
The value of i is 0. Since this information is enough to
determine the truth value of the boolean expression. So the
statement following the if statement is not executed. The
values of i and j remain unchanged and get printed.
| Is This Answer Correct ? | 13 Yes | 7 No |
main() { char a[4]="HELLO"; printf("%s",a); }
main() { static int var = 5; printf("%d ",var--); if(var) main(); }
Find your day from your DOB?
15 Answers Accenture, Microsoft,
You are given any character string. Find the number of sets of vowels that come in the order of aeiou in the given string. For eg., let the given string be DIPLOMATIC. The answer returned must be "The number of sets is 2" and "The sets are "IO and AI". Vowels that form a singleton set must be neglected. Try to post the program executable in gcc or g++ or in java.
posted by surbhi just now main() { float a = 5.375; char *p; int i; p=(char*)&a; for(i=0;i<=3;i++) printf("%02x",(unsigned char) p[i]); } how is the output of this program is :: 0000ac40 please let me know y this output has come
could you please send the program code for multiplying sparse matrix in c????
write a c program to print magic square of order n when n>3 and n is odd?
Code for 1>"ascii to string" 2>"string to ascii"
1 Answers Aricent, Global Logic,
source code for delete data in array for c
Give a oneline C expression to test whether a number is a power of 2?
25 Answers EA Electronic Arts, Google, Motorola,
main() { { unsigned int bit=256; printf("%d", bit); } { unsigned int bit=512; printf("%d", bit); } } a. 256, 256 b. 512, 512 c. 256, 512 d. Compile error
#include <stdio.h> #define a 10 main() { #define a 50 printf("%d",a); }