can anyone please help me to create a program using this,
scanf("%c%15c", &ch, nnmae);
and what is %15c means,
advanced thanks
1 reply to this topic
#1
Posted 04 August 2011 - 11:25 PM
|
|
|
#2
Posted 05 August 2011 - 07:55 AM
Well!
Hope it Helped!
scanf("%c%15c", &ch, nnmae);
From the code, you have two variables of char type ch and nnmae where nnmae is array of char. %c is a format specifier for char, in the scanf() it takes input for the variable ch and also for the array of char nnmae whereas for the array a restriction like is applied that for the array of char it should only take upto 15 chars.Hope it Helped!
I think i'm able to write a code for printing "Hello, World!". Proud of that!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









