+ 1

Can anyone give a coding of char using printf and scanf using character i.e char

3rd Aug 2019, 10:31 AM
Naresh
6 Respostas
+ 4
being in hurry kills the vibe, calm down and enjoy the process
3rd Aug 2019, 11:28 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 3
Naresh word is a string and not character, continue with the C tutorial you will understand more, to print and take string you use %s
3rd Aug 2019, 11:48 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 3
what was your input Naresh ???
3rd Aug 2019, 11:59 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
Thank u bro
3rd Aug 2019, 12:12 PM
Naresh
0
Bro I tried but only the starting word os appearing not full word os appearing So I am asking for code.
3rd Aug 2019, 11:47 AM
Naresh
0
#include <stdio.h> #include <conio.h> void main() { char a; clrscr (); printf("Type ur Name \n"); scanf("%c",&a); printf("Ur Name is %c\n",a); getch (); }
3rd Aug 2019, 11:52 AM
Naresh