07-06-2011, 03:47 PM
Q. :: How to write "Hello" without using printf function?
Take one string variable, and assign the value of hello, then by using the scanf function, scan the value of that variable. Which will print the hello word.
String str = "Hello";
Scanf("%s", str);
getch();
Take one string variable, and assign the value of hello, then by using the scanf function, scan the value of that variable. Which will print the hello word.
String str = "Hello";
Scanf("%s", str);
getch();