Re: [algogeeks] Print Hello infinite..................

2011-03-09 Thread Nishant Agarwal
#includestdio.h void print1(); void print2() { printf(Hello\n); print1(); } void print1() { printf(Hello\n); print2(); } int main() { print1(); } On Thu, Mar 10, 2011 at 11:47 AM, nidhi jain nidhi.jain311...@gmail.comwrote: @abhishek:isn't it recursion? -- You

[algogeeks] Explain the o/p

2011-03-04 Thread Nishant Agarwal
#includestdio.h main() { long x; float t; scanf(%f,t); printf(%d\n,t); x=90; printf(%f\n,x); { x=1; printf(%f\n,x); { x=30; printf(%f\n,x); } printf(%f\n,x); } x==9; printf(%f\n,x); }

Re: [algogeeks] Re: printing without loop

2011-03-01 Thread Nishant Agarwal
use recursion. On Tue, Mar 1, 2011 at 5:13 PM, bittu shashank7andr...@gmail.com wrote: here we go void main() { int i; i=1; loop: printf(%d, i) (i100)? i++: return 0; go to loop; } Thanks Regards Shashank Mani The Best Way to Escape From The Problem is to Solve it --

Re: [algogeeks] Re: arrays

2010-09-28 Thread Nishant Agarwal
#includestdio.h #includestdlib.h int main() { int a[20],i,n,max,t,j,k; printf(Enter the no. of elements\n); scanf(%d,n); for(i=0;in;i++) scanf(%d,a[i]); for(i=0;in-1;i++) { j=n-1; max=0; k=i; while(ij) {

Re: [algogeeks] Re: Number problem

2010-09-25 Thread Nishant Agarwal
...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- :-) * Nishant Agarwal Computer Science and Engineering NIT Allahabad

Re: [algogeeks] Re: Number problem

2010-09-25 Thread Nishant Agarwal
. -- :-) * Nishant Agarwal Computer Science and Engineering NIT Allahabad * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email

Re: [algogeeks] Re: ReVerse a string using recursion

2010-09-25 Thread Nishant Agarwal
. -- :-) * Nishant Agarwal Computer Science and Engineering NIT Allahabad * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge

Re: [algogeeks] Re: ReVerse a string using recursion

2010-09-24 Thread Nishant Agarwal
. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- :-) * Nishant Agarwal Computer Science and Engineering NIT Allahabad * -- You received this message because you

Re: [algogeeks] Re: ReVerse a string using recursion

2010-09-24 Thread Nishant Agarwal
options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- :-) * Nishant Agarwal Computer Science and Engineering NIT Allahabad * -- You received this message because you are subscribed

Re: [algogeeks] do this: two numbers with min diff

2010-09-23 Thread Nishant Agarwal
://groups.google.com/group/algogeeks?hl=en. -- :-) * Nishant Agarwal Computer Science and Engineering NIT Allahabad * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group

Re: [algogeeks] sum of primes

2010-09-23 Thread Nishant Agarwal
...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- :-) * Nishant Agarwal Computer Science and Engineering NIT Allahabad

Re: [algogeeks] Re: Print 1 to n one per each line on the standard output

2010-09-23 Thread Nishant Agarwal
. -- :-) * Nishant Agarwal Computer Science and Engineering NIT Allahabad * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com

Re: [algogeeks] ReVerse a string using recursion

2010-09-23 Thread Nishant Agarwal
. -- :-) * Nishant Agarwal Computer Science and Engineering NIT Allahabad * -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from

Re: [algogeeks] ReVerse a string using recursion

2010-09-23 Thread Nishant Agarwal
)); gets(s); xstrrev(s,0,strlen(s)-1); puts(s); return 0; } On Fri, Sep 24, 2010 at 12:15 AM, coolfrog$ dixit.coolfrog.div...@gmail.com wrote: @nishant: what is i and j..??? @ On Thu, Sep 23, 2010 at 1:20 PM, Nishant Agarwal nishant.agarwa...@gmail.com wrote: void xstrrev(char

Re: [algogeeks] ReVerse a string using recursion

2010-09-23 Thread Nishant Agarwal
this group, send email to algogeeks+unsubscr...@googlegroups.comalgogeeks%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- :-) * Nishant Agarwal Computer Science and Engineering NIT

Re: [algogeeks] A help please

2010-09-22 Thread Nishant Agarwal
%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- :-) * Nishant Agarwal Computer Science and Engineering NIT Allahabad * -- You

Re: [algogeeks] Print 1 to n one per each line on the standard output

2010-09-22 Thread Nishant Agarwal
options, visit this group at http://groups.google.com/group/algogeeks?hl=en. -- :-) * Nishant Agarwal Computer Science and Engineering NIT Allahabad * -- You received this message because you are subscribed