Re: [algogeeks] output plzz

2011-07-24 Thread sameer.mut...@gmail.com
Declare the character strings
char five[7];
char four[7];
int three;
char two[7];
char one[7];

int his order and we get the correct output. But i dont know y?Its something
to do with Memory location where the strings are defined.










*Muthuraj R.
4TH Year BE.**
Information Science Dept*
*PESIT, Bengaluru .
*




On Sat, Jul 23, 2011 at 10:57 PM, shady sinv...@gmail.com wrote:

 anyone ?


 On Sun, Jul 24, 2011 at 2:38 AM, Anika Jain anika.jai...@gmail.comwrote:

 in this in scanf one,two, four five will b thr, no  thr..

 and sumbody plz tell afterwards this change why the o/p is
 this is 10 times charlie
 thisis10charlie

 why in 'four' empty string is going??


 On Sat, Jul 23, 2011 at 9:37 PM, geek forgeek geekhori...@gmail.comwrote:

 #includestdio.h
 main()
 {
 char outline[50];
 char one[7],two[7],four[7],five[7];
 int three;
 sprintf(outline,this is %d times %s \n,10,charlie);
 printf(%s,outline);
 sscanf(outline,%s %s %d %s %s,one,two,three,four,five);
 printf(%s,one);
 printf(%s,two);
 printf(%d,three);
 printf(%s,four);
 printf(%s,five);
 }

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-24 Thread Anurag atri
The output will be
This is 10 times charlie
Thisis10timescharlie

and it makes sense , this will be helpful
http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/

Regards
Anurag Atri

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-24 Thread sameer.mut...@gmail.com
@Anurag:

May i know which compiler gave you the above output?






*Muthuraj R.
4TH Year BE.**
Information Science Dept*
*PESIT, Bengaluru .
*




On Sat, Jul 23, 2011 at 11:11 PM, Anurag atri anu.anurag@gmail.comwrote:

 The output will be
 This is 10 times charlie
 Thisis10timescharlie

 and it makes sense , this will be helpful
 http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/

 Regards
 Anurag Atri

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-24 Thread shady
it is not coming like that ?

On Sun, Jul 24, 2011 at 11:41 AM, Anurag atri anu.anurag@gmail.comwrote:

 The output will be
 This is 10 times charlie
 Thisis10timescharlie

 and it makes sense , this will be helpful
 http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/

 Regards
 Anurag Atri

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-24 Thread sameer.mut...@gmail.com
No. Its not coming like dat.


This is 10 times charlie
Thisis10charlie


This is the output



*Muthuraj R.
4TH Year BE.**
Information Science Dept*
*PESIT, Bengaluru .
*




On Sat, Jul 23, 2011 at 11:23 PM, shady sinv...@gmail.com wrote:

 it is not coming like that ?


 On Sun, Jul 24, 2011 at 11:41 AM, Anurag atri anu.anurag@gmail.comwrote:

 The output will be
 This is 10 times charlie
 Thisis10timescharlie

 and it makes sense , this will be helpful
 http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/

 Regards
 Anurag Atri

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-24 Thread rajeev bharshetty
@sameer : U r right . The Fourth string is not storing any thing, its blank
..

On Sun, Jul 24, 2011 at 12:01 PM, sameer.mut...@gmail.com 
sameer.mut...@gmail.com wrote:

 No. Its not coming like dat.



 This is 10 times charlie
 Thisis10charlie


 This is the output




 *Muthuraj R.
 4TH Year BE.**
 Information Science Dept*
 *PESIT, Bengaluru .
 *




 On Sat, Jul 23, 2011 at 11:23 PM, shady sinv...@gmail.com wrote:

 it is not coming like that ?


 On Sun, Jul 24, 2011 at 11:41 AM, Anurag atri 
 anu.anurag@gmail.comwrote:

 The output will be
 This is 10 times charlie
 Thisis10timescharlie

 and it makes sense , this will be helpful
 http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/

 Regards
 Anurag Atri

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
Regards
Rajeev N B http://www.opensourcemania.co.cc

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-24 Thread Anurag atri
Dev c++ , which one are you using ?

On Sun, Jul 24, 2011 at 12:01 PM, sameer.mut...@gmail.com 
sameer.mut...@gmail.com wrote:

 No. Its not coming like dat.



 This is 10 times charlie
 Thisis10charlie


 This is the output




 *Muthuraj R.
 4TH Year BE.**
 Information Science Dept*
 *PESIT, Bengaluru .
 *




 On Sat, Jul 23, 2011 at 11:23 PM, shady sinv...@gmail.com wrote:

 it is not coming like that ?


 On Sun, Jul 24, 2011 at 11:41 AM, Anurag atri 
 anu.anurag@gmail.comwrote:

 The output will be
 This is 10 times charlie
 Thisis10timescharlie

 and it makes sense , this will be helpful
 http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/

 Regards
 Anurag Atri

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
Regards
Anurag Atri
III year
Computer Engineering
Delhi College Of Engineering

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-24 Thread sameer.mut...@gmail.com
@Anrag: i am using gcc on Ubuntu.I also checkd it on Ideone online compiler.


But Declare the character strings
char five[7];
char four[7];
int three;
char two[7];
char one[7];

int his order and we get the correct output. But i dont know y?Its something
to do with Memory location where the strings are defined.



*Muthuraj R.
4TH Year BE.**
Information Science Dept*
*PESIT, Bengaluru .
*




On Sat, Jul 23, 2011 at 11:34 PM, Anurag atri anu.anurag@gmail.comwrote:

 Dev c++ , which one are you using ?

 On Sun, Jul 24, 2011 at 12:01 PM, sameer.mut...@gmail.com 
 sameer.mut...@gmail.com wrote:

 No. Its not coming like dat.



 This is 10 times charlie
 Thisis10charlie


 This is the output




 *Muthuraj R.
 4TH Year BE.**
 Information Science Dept*
 *PESIT, Bengaluru .
 *




 On Sat, Jul 23, 2011 at 11:23 PM, shady sinv...@gmail.com wrote:

 it is not coming like that ?


 On Sun, Jul 24, 2011 at 11:41 AM, Anurag atri 
 anu.anurag@gmail.comwrote:

 The output will be
 This is 10 times charlie
 Thisis10timescharlie

 and it makes sense , this will be helpful
 http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/

 Regards
 Anurag Atri

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Regards
 Anurag Atri
 III year
 Computer Engineering
 Delhi College Of Engineering


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-24 Thread Anurag atri
yup , on ideone it indeed is giving the output you suggested ..


On Sun, Jul 24, 2011 at 12:10 PM, sameer.mut...@gmail.com 
sameer.mut...@gmail.com wrote:

 @Anrag: i am using gcc on Ubuntu.I also checkd it on Ideone online
 compiler.


 But Declare the character strings
 char five[7];
 char four[7];
 int three;
 char two[7];
 char one[7];

 int his order and we get the correct output. But i dont know y?Its
 something to do with Memory location where the strings are defined.



 *Muthuraj R.
 4TH Year BE.**
 Information Science Dept*
 *PESIT, Bengaluru .
 *




 On Sat, Jul 23, 2011 at 11:34 PM, Anurag atri anu.anurag@gmail.comwrote:

 Dev c++ , which one are you using ?

 On Sun, Jul 24, 2011 at 12:01 PM, sameer.mut...@gmail.com 
 sameer.mut...@gmail.com wrote:

 No. Its not coming like dat.



 This is 10 times charlie
 Thisis10charlie


 This is the output




 *Muthuraj R.
 4TH Year BE.**
 Information Science Dept*
 *PESIT, Bengaluru .
 *




 On Sat, Jul 23, 2011 at 11:23 PM, shady sinv...@gmail.com wrote:

 it is not coming like that ?


 On Sun, Jul 24, 2011 at 11:41 AM, Anurag atri anu.anurag@gmail.com
  wrote:

 The output will be
 This is 10 times charlie
 Thisis10timescharlie

 and it makes sense , this will be helpful
 http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/

 Regards
 Anurag Atri

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Regards
 Anurag Atri
 III year
 Computer Engineering
 Delhi College Of Engineering


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
Regards
Anurag Atri
III year
Computer Engineering
Delhi College Of Engineering

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-24 Thread sunny agrawal
char five[7] - string of length 7
charlie - 7 length string

declare it as char[8] u will get expected output

On Sun, Jul 24, 2011 at 12:15 PM, Anurag atri anu.anurag@gmail.comwrote:

 yup , on ideone it indeed is giving the output you suggested ..



 On Sun, Jul 24, 2011 at 12:10 PM, sameer.mut...@gmail.com 
 sameer.mut...@gmail.com wrote:

 @Anrag: i am using gcc on Ubuntu.I also checkd it on Ideone online
 compiler.


 But Declare the character strings
 char five[7];
 char four[7];
 int three;
 char two[7];
 char one[7];

 int his order and we get the correct output. But i dont know y?Its
 something to do with Memory location where the strings are defined.



 *Muthuraj R.
 4TH Year BE.**
 Information Science Dept*
 *PESIT, Bengaluru .
 *




 On Sat, Jul 23, 2011 at 11:34 PM, Anurag atri 
 anu.anurag@gmail.comwrote:

 Dev c++ , which one are you using ?

 On Sun, Jul 24, 2011 at 12:01 PM, sameer.mut...@gmail.com 
 sameer.mut...@gmail.com wrote:

 No. Its not coming like dat.



 This is 10 times charlie
 Thisis10charlie


 This is the output




 *Muthuraj R.
 4TH Year BE.**
 Information Science Dept*
 *PESIT, Bengaluru .
 *




 On Sat, Jul 23, 2011 at 11:23 PM, shady sinv...@gmail.com wrote:

 it is not coming like that ?


 On Sun, Jul 24, 2011 at 11:41 AM, Anurag atri 
 anu.anurag@gmail.com wrote:

 The output will be
 This is 10 times charlie
 Thisis10timescharlie

 and it makes sense , this will be helpful
 http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/

 Regards
 Anurag Atri

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Regards
 Anurag Atri
 III year
 Computer Engineering
 Delhi College Of Engineering


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Regards
 Anurag Atri
 III year
 Computer Engineering
 Delhi College Of Engineering

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
Sunny Aggrawal
B-Tech IV year,CSI
Indian Institute Of Technology,Roorkee

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-24 Thread shady
@sunny it should have printed some garbage after 'charlie' in that case ?
that is what happens with scanf when you overwrite '\0'... isn't it ?

On Sun, Jul 24, 2011 at 12:25 PM, sunny agrawal sunny816.i...@gmail.comwrote:

 char five[7] - string of length 7
 charlie - 7 length string

 declare it as char[8] u will get expected output

 On Sun, Jul 24, 2011 at 12:15 PM, Anurag atri anu.anurag@gmail.comwrote:

 yup , on ideone it indeed is giving the output you suggested ..



 On Sun, Jul 24, 2011 at 12:10 PM, sameer.mut...@gmail.com 
 sameer.mut...@gmail.com wrote:

 @Anrag: i am using gcc on Ubuntu.I also checkd it on Ideone online
 compiler.


 But Declare the character strings
 char five[7];
 char four[7];
 int three;
 char two[7];
 char one[7];

 int his order and we get the correct output. But i dont know y?Its
 something to do with Memory location where the strings are defined.



 *Muthuraj R.
 4TH Year BE.**
 Information Science Dept*
 *PESIT, Bengaluru .
 *




 On Sat, Jul 23, 2011 at 11:34 PM, Anurag atri 
 anu.anurag@gmail.comwrote:

 Dev c++ , which one are you using ?

 On Sun, Jul 24, 2011 at 12:01 PM, sameer.mut...@gmail.com 
 sameer.mut...@gmail.com wrote:

 No. Its not coming like dat.



 This is 10 times charlie
  Thisis10charlie


 This is the output




 *Muthuraj R.
 4TH Year BE.**
 Information Science Dept*
 *PESIT, Bengaluru .
 *




 On Sat, Jul 23, 2011 at 11:23 PM, shady sinv...@gmail.com wrote:

 it is not coming like that ?


 On Sun, Jul 24, 2011 at 11:41 AM, Anurag atri 
 anu.anurag@gmail.com wrote:

 The output will be
 This is 10 times charlie
 Thisis10timescharlie

 and it makes sense , this will be helpful
 http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/

 Regards
 Anurag Atri

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Regards
 Anurag Atri
 III year
 Computer Engineering
 Delhi College Of Engineering


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Regards
 Anurag Atri
 III year
 Computer Engineering
 Delhi College Of Engineering

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Sunny Aggrawal
 B-Tech IV year,CSI
 Indian Institute Of Technology,Roorkee


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-24 Thread sunny agrawal
Can't say but that seems to be the issue to me
To get the final answer need to explore Stack contents.

On Sun, Jul 24, 2011 at 12:34 PM, shady sinv...@gmail.com wrote:

 @sunny it should have printed some garbage after 'charlie' in that case ?
 that is what happens with scanf when you overwrite '\0'... isn't it ?


 On Sun, Jul 24, 2011 at 12:25 PM, sunny agrawal 
 sunny816.i...@gmail.comwrote:

 char five[7] - string of length 7
 charlie - 7 length string

 declare it as char[8] u will get expected output

 On Sun, Jul 24, 2011 at 12:15 PM, Anurag atri 
 anu.anurag@gmail.comwrote:

 yup , on ideone it indeed is giving the output you suggested ..



 On Sun, Jul 24, 2011 at 12:10 PM, sameer.mut...@gmail.com 
 sameer.mut...@gmail.com wrote:

 @Anrag: i am using gcc on Ubuntu.I also checkd it on Ideone online
 compiler.


 But Declare the character strings
 char five[7];
 char four[7];
 int three;
 char two[7];
 char one[7];

 int his order and we get the correct output. But i dont know y?Its
 something to do with Memory location where the strings are defined.



 *Muthuraj R.
 4TH Year BE.**
 Information Science Dept*
 *PESIT, Bengaluru .
 *




 On Sat, Jul 23, 2011 at 11:34 PM, Anurag atri anu.anurag@gmail.com
  wrote:

 Dev c++ , which one are you using ?

 On Sun, Jul 24, 2011 at 12:01 PM, sameer.mut...@gmail.com 
 sameer.mut...@gmail.com wrote:

 No. Its not coming like dat.



 This is 10 times charlie
  Thisis10charlie


 This is the output




 *Muthuraj R.
 4TH Year BE.**
 Information Science Dept*
 *PESIT, Bengaluru .
 *




 On Sat, Jul 23, 2011 at 11:23 PM, shady sinv...@gmail.com wrote:

 it is not coming like that ?


 On Sun, Jul 24, 2011 at 11:41 AM, Anurag atri 
 anu.anurag@gmail.com wrote:

 The output will be
 This is 10 times charlie
 Thisis10timescharlie

 and it makes sense , this will be helpful
 http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/

 Regards
 Anurag Atri

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Regards
 Anurag Atri
 III year
 Computer Engineering
 Delhi College Of Engineering


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Regards
 Anurag Atri
 III year
 Computer Engineering
 Delhi College Of Engineering

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Sunny Aggrawal
 B-Tech IV year,CSI
 Indian Institute Of Technology,Roorkee


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.





Re: [algogeeks] output plzz

2011-07-23 Thread saurabh singh
The break statement here breaks out of the do loop so the o/p hello hmmm
give a break statement after hello and you will get only hello.

PS:Seeing the number of C questions wont it be a better idea to start a
parallel group especially for the same?My request to the group admins for
the same.

On Sat, Jul 23, 2011 at 8:47 PM, geek forgeek geekhori...@gmail.com wrote:

 #includestdio.h
 main()
 {
 int i=3;
 switch(i)
 {
 do
 {
 case 3: printf(\nhello);
 case 2:printf(\n h);
 break;
 case 1:printf(wat);
 break;
 case 0: printf(hai);
 }while(i--);
 }
 }

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
Saurabh Singh
B.Tech (Computer Science)
MNNIT ALLAHABAD

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-23 Thread shady
nice idea Saurabh, but i don't think much people will join that group too,
and the difference should be on the basis of type of questions asked. Any
suggestions from others ? There we can ask questions related to debugging
and puzzles, aptitude

On Sat, Jul 23, 2011 at 8:51 PM, saurabh singh saurab...@gmail.com wrote:

 The break statement here breaks out of the do loop so the o/p hello hmmm
 give a break statement after hello and you will get only hello.

 PS:Seeing the number of C questions wont it be a better idea to start a
 parallel group especially for the same?My request to the group admins for
 the same.


 On Sat, Jul 23, 2011 at 8:47 PM, geek forgeek geekhori...@gmail.comwrote:

 #includestdio.h
 main()
 {
 int i=3;
 switch(i)
 {
 do
 {
 case 3: printf(\nhello);
 case 2:printf(\n h);
 break;
 case 1:printf(wat);
 break;
 case 0: printf(hai);
 }while(i--);
 }
 }

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Saurabh Singh
 B.Tech (Computer Science)
 MNNIT ALLAHABAD


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-23 Thread sameer.mut...@gmail.com
@shady: yes its a good idea to have aptitude puzzles etc in other group

On Sat, Jul 23, 2011 at 8:29 AM, shady sinv...@gmail.com wrote:

 nice idea Saurabh, but i don't think much people will join that group too,
 and the difference should be on the basis of type of questions asked. Any
 suggestions from others ? There we can ask questions related to debugging
 and puzzles, aptitude


 On Sat, Jul 23, 2011 at 8:51 PM, saurabh singh saurab...@gmail.comwrote:

 The break statement here breaks out of the do loop so the o/p hello hmmm
 give a break statement after hello and you will get only hello.

 PS:Seeing the number of C questions wont it be a better idea to start a
 parallel group especially for the same?My request to the group admins for
 the same.


 On Sat, Jul 23, 2011 at 8:47 PM, geek forgeek geekhori...@gmail.comwrote:

 #includestdio.h
 main()
 {
 int i=3;
 switch(i)
 {
 do
 {
 case 3: printf(\nhello);
 case 2:printf(\n h);
 break;
 case 1:printf(wat);
 break;
 case 0: printf(hai);
 }while(i--);
 }
 }

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Saurabh Singh
 B.Tech (Computer Science)
 MNNIT ALLAHABAD


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-23 Thread geek forgeek
even i second this gud idea

On Sat , Jul 23, 2011 at 8:40 AM, sameer.mut...@gmail.com 
sameer.mut...@gmail.com wrote:

 @shady: yes its a good idea to have aptitude puzzles etc in other group


 On Sat, Jul 23, 2011 at 8:29 AM, shady sinv...@gmail.com wrote:

 nice idea Saurabh, but i don't think much people will join that group too,
 and the difference should be on the basis of type of questions asked. Any
 suggestions from others ? There we can ask questions related to debugging
 and puzzles, aptitude


 On Sat, Jul 23, 2011 at 8:51 PM, saurabh singh saurab...@gmail.comwrote:

 The break statement here breaks out of the do loop so the o/p hello hmmm
 give a break statement after hello and you will get only hello.

 PS:Seeing the number of C questions wont it be a better idea to start a
 parallel group especially for the same?My request to the group admins for
 the same.


 On Sat, Jul 23, 2011 at 8:47 PM, geek forgeek geekhori...@gmail.comwrote:

 #includestdio.h
 main()
 {
 int i=3;
 switch(i)
 {
 do
 {
 case 3: printf(\nhello);
 case 2:printf(\n h);
 break;
 case 1:printf(wat);
 break;
 case 0: printf(hai);
 }while(i--);
 }
 }

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Saurabh Singh
 B.Tech (Computer Science)
 MNNIT ALLAHABAD


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-23 Thread shady
I will get back to you tomorrow. Thanks a lot for the feedback :)
Probably can have some contests organized as well, once a month on online
judges..( no prizes though )

On Sat, Jul 23, 2011 at 9:21 PM, geek forgeek geekhori...@gmail.com wrote:

 even i second this gud idea


 On Sat , Jul 23, 2011 at 8:40 AM, sameer.mut...@gmail.com 
 sameer.mut...@gmail.com wrote:

 @shady: yes its a good idea to have aptitude puzzles etc in other group


 On Sat, Jul 23, 2011 at 8:29 AM, shady sinv...@gmail.com wrote:

 nice idea Saurabh, but i don't think much people will join that group
 too, and the difference should be on the basis of type of questions asked.
 Any suggestions from others ? There we can ask questions related to
 debugging and puzzles, aptitude


 On Sat, Jul 23, 2011 at 8:51 PM, saurabh singh saurab...@gmail.comwrote:

 The break statement here breaks out of the do loop so the o/p hello hmmm
 give a break statement after hello and you will get only hello.

 PS:Seeing the number of C questions wont it be a better idea to start a
 parallel group especially for the same?My request to the group admins for
 the same.


 On Sat, Jul 23, 2011 at 8:47 PM, geek forgeek geekhori...@gmail.comwrote:

 #includestdio.h
 main()
 {
 int i=3;
 switch(i)
 {
 do
 {
 case 3: printf(\nhello);
 case 2:printf(\n h);
 break;
 case 1:printf(wat);
 break;
 case 0: printf(hai);
 }while(i--);
 }
 }

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Saurabh Singh
 B.Tech (Computer Science)
 MNNIT ALLAHABAD


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-23 Thread saurabh singh
Anyways just share the link on the group.I am pretty sure the interested
will join.No offences but sometimes it does get irritating when you open a
post with subject Help! and when you expect some good algorithm problem you
find questions like -x=++x---x+++x---x;whats the output.
Whatever you decide please make it clear about what exactly the new group
will be about(If at all you decide to make one.)

PS:Thanks for the reply.

On Sat, Jul 23, 2011 at 9:25 PM, shady sinv...@gmail.com wrote:

 I will get back to you tomorrow. Thanks a lot for the feedback :)
 Probably can have some contests organized as well, once a month on online
 judges..( no prizes though )

 On Sat, Jul 23, 2011 at 9:21 PM, geek forgeek geekhori...@gmail.comwrote:

 even i second this gud idea


 On Sat , Jul 23, 2011 at 8:40 AM, sameer.mut...@gmail.com 
 sameer.mut...@gmail.com wrote:

 @shady: yes its a good idea to have aptitude puzzles etc in other group


 On Sat, Jul 23, 2011 at 8:29 AM, shady sinv...@gmail.com wrote:

 nice idea Saurabh, but i don't think much people will join that group
 too, and the difference should be on the basis of type of questions asked.
 Any suggestions from others ? There we can ask questions related to
 debugging and puzzles, aptitude


 On Sat, Jul 23, 2011 at 8:51 PM, saurabh singh saurab...@gmail.comwrote:

 The break statement here breaks out of the do loop so the o/p hello
 hmmm
 give a break statement after hello and you will get only hello.

 PS:Seeing the number of C questions wont it be a better idea to start a
 parallel group especially for the same?My request to the group admins for
 the same.


 On Sat, Jul 23, 2011 at 8:47 PM, geek forgeek 
 geekhori...@gmail.comwrote:

 #includestdio.h
 main()
 {
 int i=3;
 switch(i)
 {
 do
 {
 case 3: printf(\nhello);
 case 2:printf(\n h);
 break;
 case 1:printf(wat);
 break;
 case 0: printf(hai);
 }while(i--);
 }
 }

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Saurabh Singh
 B.Tech (Computer Science)
 MNNIT ALLAHABAD


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 
Saurabh Singh
B.Tech (Computer Science)
MNNIT ALLAHABAD

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-23 Thread Pankaj
+1.
The new group should only contain stuff related to C output and error
detection and ques like that.
Puzzles I think can be discussed here. wattsay?

On Sat, Jul 23, 2011 at 10:44 PM, saurabh singh saurab...@gmail.com wrote:

 Anyways just share the link on the group.I am pretty sure the interested
 will join.No offences but sometimes it does get irritating when you open a
 post with subject Help! and when you expect some good algorithm problem you
 find questions like -x=++x---x+++x---x;whats the output.
 Whatever you decide please make it clear about what exactly the new group
 will be about(If at all you decide to make one.)

 PS:Thanks for the reply.


 On Sat, Jul 23, 2011 at 9:25 PM, shady sinv...@gmail.com wrote:

 I will get back to you tomorrow. Thanks a lot for the feedback :)
 Probably can have some contests organized as well, once a month on online
 judges..( no prizes though )

 On Sat, Jul 23, 2011 at 9:21 PM, geek forgeek geekhori...@gmail.comwrote:

 even i second this gud idea


 On Sat , Jul 23, 2011 at 8:40 AM, sameer.mut...@gmail.com 
 sameer.mut...@gmail.com wrote:

 @shady: yes its a good idea to have aptitude puzzles etc in other group


 On Sat, Jul 23, 2011 at 8:29 AM, shady sinv...@gmail.com wrote:

 nice idea Saurabh, but i don't think much people will join that group
 too, and the difference should be on the basis of type of questions asked.
 Any suggestions from others ? There we can ask questions related to
 debugging and puzzles, aptitude


 On Sat, Jul 23, 2011 at 8:51 PM, saurabh singh saurab...@gmail.comwrote:

 The break statement here breaks out of the do loop so the o/p hello
 hmmm
 give a break statement after hello and you will get only hello.

 PS:Seeing the number of C questions wont it be a better idea to start
 a parallel group especially for the same?My request to the group admins 
 for
 the same.


 On Sat, Jul 23, 2011 at 8:47 PM, geek forgeek 
 geekhori...@gmail.comwrote:

 #includestdio.h
 main()
 {
 int i=3;
 switch(i)
 {
 do
 {
 case 3: printf(\nhello);
 case 2:printf(\n h);
 break;
 case 1:printf(wat);
 break;
 case 0: printf(hai);
 }while(i--);
 }
 }

 --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Saurabh Singh
 B.Tech (Computer Science)
 MNNIT ALLAHABAD


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google
 Groups Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --
 Saurabh Singh
 B.Tech (Computer Science)
 MNNIT ALLAHABAD


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to 

Re: [algogeeks] output plzz

2011-07-23 Thread Anika Jain
in this in scanf one,two, four five will b thr, no  thr..

and sumbody plz tell afterwards this change why the o/p is
this is 10 times charlie
thisis10charlie

why in 'four' empty string is going??

On Sat, Jul 23, 2011 at 9:37 PM, geek forgeek geekhori...@gmail.com wrote:

 #includestdio.h
 main()
 {
 char outline[50];
 char one[7],two[7],four[7],five[7];
 int three;
 sprintf(outline,this is %d times %s \n,10,charlie);
 printf(%s,outline);
 sscanf(outline,%s %s %d %s %s,one,two,three,four,five);
 printf(%s,one);
 printf(%s,two);
 printf(%d,three);
 printf(%s,four);
 printf(%s,five);
 }

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-23 Thread priyanka goel
output of above question will be   hello h
In switch we get output until a break statement is encountered..
so after printing hello it will also print h and den dere is a break
statement so it will come out of while loop

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] output plzz

2011-07-23 Thread shady
anyone ?

On Sun, Jul 24, 2011 at 2:38 AM, Anika Jain anika.jai...@gmail.com wrote:

 in this in scanf one,two, four five will b thr, no  thr..

 and sumbody plz tell afterwards this change why the o/p is
 this is 10 times charlie
 thisis10charlie

 why in 'four' empty string is going??


 On Sat, Jul 23, 2011 at 9:37 PM, geek forgeek geekhori...@gmail.comwrote:

 #includestdio.h
 main()
 {
 char outline[50];
 char one[7],two[7],four[7],five[7];
 int three;
 sprintf(outline,this is %d times %s \n,10,charlie);
 printf(%s,outline);
 sscanf(outline,%s %s %d %s %s,one,two,three,four,five);
 printf(%s,one);
 printf(%s,two);
 printf(%d,three);
 printf(%s,four);
 printf(%s,five);
 }

  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.