+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; }

9/10/2019 6:28:26 AM

Chetana Rajendra Sonawane

2 Answers

New Answer

+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.

+3

ohh right Mr vijay meena *thank you* for remembering