Monday, July 27, 2009

Plz can u give me some C-programs related to arrays. plz i have homework .....?

which starts with ...... #include%26lt;stdio.h %26gt;


I need about 10 programs,,,, I will be very thankful

Plz can u give me some C-programs related to arrays. plz i have homework .....?
Hai man its not hard 4 me 2 giv 10 array programs...


But how could u understan it...


De best way is just buy Let us C by Yaswant Kanitkar...


Its a good guide 4 de biginers.Once if u understan de concep writing 10 array programs is no mor a probs.If u done dat u'll feel wy dis stupid sir/madam giv 10 programs 1ly.





But i can giv u a fair idea...





int a; (U can stor 1ly 1 value to dis a, say a=10)


int a[3];(In dis array u can stor 3 values to a,say a=10,a=20,a=30)...





And de 10 is stord in a[0],20 is in a[1],30 is in a[2]...





Here is a simple program...





#include%26lt;stdio.h%26gt;


void main()


{


int a[3];


for(i=0;i%26lt;=2;i++)


scanf(a[i]);


for(i=0;i%26lt;=2;i++)


printf("%d",a[i]);


getch();


}





So try to understan de concep...and write ur own code...


U h've 2 luv C compiler 2 do dis...
Reply:U can buy Let's c or Programming in c of Balagurusami.they r best for beginners.If u cant write the programmes Solved Let's c is also available in market but it's dangoures for u becoz if u cant develop ur own logic u cant grip over other languages like java,asp.net.if u want to make ur future in Programming u should give time to ur programming.First time may be u will bored or fustrated but when u will develop ur logic u can do anything.


so pls try to develop ur own logic.u can take help of this book.


good luck.


No comments:

Post a Comment