Jump to content

%15, could not understand

- - - - -

  • Please log in to reply
1 reply to this topic

#1
sugu3214

sugu3214

    Newbie

  • Members
  • Pip
  • 1 posts
can anyone please help me to create a program using this,

scanf("%c%15c", &ch, nnmae);

and what is %15c means,

advanced thanks

#2
AKMafia001

AKMafia001

    Programmer

  • Members
  • PipPipPipPip
  • 119 posts
Well!

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