I was troubled because, even preparing all chapters from standard C programming books by Kanetakar, Ritchie n Karnighm. I found some confusinmg tricky questions, at one programming contest.. For eg. Objective was “What is sequence point..?” After googling I got ans in just single click. Here are some links you must try while learing C [...]
Archive for the ‘codes’ Category
Sequence point in C
Posted in codes on November 15, 2007 | Leave a Comment »
I Got puzzled..
Posted in codes on September 17, 2007 | Leave a Comment »
Get puzzled in c: 1. Evaluate expression (7/9*9). 2. float x=sqrt(36.0); printf(“Value x=%d”,x); 3. for(;;); 4. What is the error here. void main(){ main: printf(“Address=%p”,main-main); } 5. What is the o/p: void main(){ main: printf(“Address=%p”,main); } 6. what is o/p. void main(){ int a=20,foo(int); printf(“FOO= %d”,foo(a)); } int foo(int x){ int p=20,q=30; (a>10)? return p: [...]
Sequence point
Posted in codes on September 17, 2007 | Leave a Comment »
I was troubled because, even preparing all chapters from standard C programming books by Kanetakar, Ritchie n Karnighm. I found some confusinmg tricky questions, at one programming contest at PICT.. For eg. Objective was “What is sequence point..?” After googling I got ans in just single click. 1. C-FAQ.COM 2. TheSCRIPT.COM 3. MSDN 4. GCC-GNU
Power sequence algorithm
Posted in codes on July 17, 2007 | 1 Comment »
We know how to calculate square of a number….. Square(n)=n*n But this square is nothing but sum of first n odd numbers. i.e. Square(n) =Sum of first n odd nos. =1+3+5+….+(2n-1) This statement indicates that if we have a series of squares like 1,4,9,16,25,.. then the series formed with the consecutive differences is nothing but [...]
Facinating world of mathematics..
Posted in codes on June 21, 2007 | Leave a Comment »
I am trying to solve mathematical problems, puzzles using alogorithms in C.. I found some informative links may be useful for someone studying mathematics for fun 1.MathWorld






