Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
turbo c
Name: _swish Date: November 13, 2003 at 23:55:53 Pacific OS: win2000 CPU/Ram: 128
Comment:
im trying to write a program about pointers and arrays... it should accept ten numbers with the use of pointers/arrays then it will arrrange the numbers from smallest to largest... then it will display the sum and product of all the ten numbers... please help me!... i've been working in this problem for 2 weeks now... i'm very confused in using pointers...
Name: Avdhesh Date: November 14, 2003 at 01:05:11 Pacific
Reply:
Hi, This is a simple problem. Please refer Schaum series C programming by Byron S. Gottfried. After reading Pointers from this book, I think you will never face problems in C pointers. This book is published by Tata Mcgraw Hill in India and in abroad by McGraw hill. But the ultimate book in C Pointers is -" Pointers in C" by Yashwant Kanetkar ( BPB Publication , New Delhi, India). Try it but you face further problem in this program, mail me at avdhesh_k_s@yahoo.co.in .
In C array is def as - int x[10]; to access 5th element you have to do x[4]. Using pointers the same can be done as : int *x; this is int pointer decleration. To occupy space of 10 elements do- x = (int *) malloc( 10 * sizeof(int)); never forget to include malloc.h. now you can use *(x+4) to get 5th element.
Summary: I recently installed turbo c++. whenever i try to run turbo c, it gives the following error. turbo c++ IDE NTVDM CPU has encountered an illegal instruction CS:c000 IP:3131 OP:ff ff 17 58 0b choose 'cl...
Summary: Hi I have the whole directory of turbo C...The way it works is by copying it to a directory in c and then add a path statement like path + c:\borlandc in the autoexec .bat but I cant see any thing in...