Puts >> Displaying String in C Programming :
Way 1 :Messaging
puts(" Type your Message / Instruction ");
- Like Printf Statement puts() can be used to display message.
puts(string_Variable_name) ;
Notes or Facts :
- puts is included in header file "stdio.h"
- As name suggest it used for Printing or Displaying Messages or Instructions
Uses :
- Printing Message
- Ask user for entering the data ( Labels . Instructions )
- Printing Results
Live Example :
Output :#include< stdio.h> #include< conio.h> void main() { char string[] = "This is an example string\n"; puts(string); // String is variable Here puts("String"); // String is in Double Quotes getch(); }
String is : This is an example string String is : StringRelated Articles :
- How to Input Password in C : Validation of User name
- Putchar function >> Displaying String in C
- Puts >> Displaying String in C Programming
- Printf >> Displaying String in C Programming

0 comments
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email