0
   

plz help me about simple c program

 
 
vitry
 
Reply Mon 22 Nov, 2010 12:27 pm
#include<stdio.h>
#include<stdlib.h>
int main()
{
char s1[100],s2[100];
printf("enter string\n");
scanf("%[^\n]s",s1);
printf("enter string\n");
scanf("%[^\n]",s2);
printf("%s %s",s1,s2);
}
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 1,076 • Replies: 2
No top replies

 
George
 
  1  
Reply Mon 22 Nov, 2010 12:54 pm
@vitry,
Compare the first and second scanf() and look for the difference.
0 Replies
 
Emme
 
  0  
Reply Thu 14 Apr, 2011 02:29 am
@vitry,
Give me your requirement i'll guide you. I have no idea about c but expert in c++.
0 Replies
 
 

Related Topics

Clone of Micosoft Office - Question by Advocate
Do You Turn Off Your Computer at Night? - Discussion by Phoenix32890
The "Death" of the Computer Mouse - Discussion by Phoenix32890
Windows 10... - Discussion by Region Philbis
Surface Pro 3: What do you think? - Question by neologist
Windows 8 tips thread - Discussion by Wilso
GOOGLE CHROME - Question by Setanta
.Net and Firefox... - Discussion by gungasnake
Hacking a computer and remote access - Discussion by trying2learn
 
  1. Forums
  2. » plz help me about simple c program
Copyright © 2022 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.04 seconds on 08/13/2022 at 11:56:56