Feeds:
Posts
Comments

Archive for the ‘codes’ Category

Sequence point in C

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 [...]

Read Full Post »

I Got puzzled..

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: [...]

Read Full Post »

Sequence point

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

Read Full Post »

Power sequence algorithm

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 [...]

Read Full Post »

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

Read Full Post »

Follow

Get every new post delivered to your Inbox.