+ 3

Why the output are not display in following code?

#include <stdio.h> int main() { int x; float num; char text[20]; scanf("%d %f %s", &x, &num, text); return 0; }

10th Sep 2019, 6:28 AM
Chetana Rajendra Sonawane
Chetana Rajendra Sonawane - avatar
2 Answers
+ 6
Because you're not displaying anything. For display output in C language you have to use - Printf() function. for printing integer use printf("%d", c); here c is name of variable. https://www.sololearn.com/learn/C/2914/ For your code you have to use loop over array and print every element of array.
10th Sep 2019, 6:38 AM
Vijay Meena
+ 3
ohh right Mr vijay meena *thank you* for remembering
10th Sep 2019, 6:43 AM
Chetana Rajendra Sonawane
Chetana Rajendra Sonawane - avatar