You are here:

C/read BMP

Advertisement


Vision wrote at 2007-04-22 16:06:51
The first line of the first function,

"FILE*infile = NULL;/* input file handle */"

needs a space between the * and infile.

It should be FILE* infile = NULL;/* input file handle */  


Narendra Kumar wrote at 2007-05-08 12:08:31
It is not necessary to have a space after the asterix.

Actually, it is better not to have a space and that will improve the reading.

For example, if your declaration is:

int *str, my_int;

If you instead declare this as:

int* str, my_int;

it will confuse the reader.

Hope you are understanding what I am trying to tell.



-Narendra


C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Narendra

Expertise

I can answer questions in C related to programming, data structures, pointers and file manipulation. I use Solaris for doing C code and if you have questions related to C programming on Solaris, I will be able to help better.

Experience

6.5

Organizations belong to
Sun Microsystems

Awards and Honors
Brain Bench Certified Expert C programmer.
Advanced System Software Certified

©2012 About.com, a part of The New York Times Company. All rights reserved.