#include <stdio.h> int main() { char a[100]; gets(a); printf("You entered: %s", a); return 0; ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

#include <stdio.h> int main() { char a[100]; gets(a); printf("You entered: %s", a); return 0; ?

This program is using get function,so using char but it passed to priintf stmt using %s. Y using s. Normally char value is c but it using a?

26th Jul 2019, 1:30 PM
Sugavanam S
0 Answers