What will be the output of the program?
#include<stdio.h> int main() { int i; char c; for(i=i<=i++) { scanf("%c", &c); /* given input is 'b' */ ungetc(c, stdout); printf("%c", c); ungetc(c, stdin); } return}
Does there any function exist to convert the int or float to a string?
#include<stdio.h> #include<stdlib.h> int main() { char *i = "55.555"; int result1 = float result2 = 11. result1 = result1+atoi(i); result2 = result2+atof(i); printf("%d, %f", resultresult2); return }
What is the purpose of fflush() function.
#include<stdio.h> #include<string.h> int main() { char dest[] = {0}; char src[] = "aaa"; int i; if((i = memcmp(dest, src, 2))== printf("Got it"); else printf("Missed"); return }
Can you use the fprintf() to display the output on the screen?
What will function gcvt() do?
What will the function randomize() do in Turbo C under DOS?
#include<stdio.h> int main() { int i; char c; for(i=i<=i++) { scanf("%c", &c); /* given input is 'a' */ printf("%c", c); ungetc(c, stdin); } return }
Please disable the adBlock and continue. Thank you.