0

How to make string enter program

include <stdio.h> #include<conio.h> int main() { int i,j,k; scanf("%d",&k); char s[k]; for(i=0;i<k;i++) { scanf("%c",&s[i]); } for(j=0;j<k;j++) { printf("%c",s[j]); } printf ("wow"); getch(); return 0; }

21st Jan 2018, 6:46 AM
Sufal Chhabra
Sufal Chhabra - avatar
1 Réponse
0
tell me the errors in the program
21st Jan 2018, 6:46 AM
Sufal Chhabra
Sufal Chhabra - avatar