I often see postings that include examples such as :
#include #include #include "lcd.h" #include "buttons.h ... ....... .. ..... char *p1, *p2;
I've always wondered what the purpose of the first 2 "blank" include lines is.....I've been assuming this just a lazy way of noting there are other includes (without bothering to type it all out), or do they serve some programming purpose that I've been missing out on? I've never seen an app note or suggestion to do this, yet I see it in some postings.
I also see that defining two pointers using:
char *p1, *p2; // is correct & is thus the "preferred way" ...but
char* p1, p2; // is not correct. Yet, why do I often see:
char* p1; //being used rather than:
char *p1; // both of these are allowed
Of course C ignores spaces/whitespace, so both of these are fine--just wondering why not use the (preferred) form that works in all situations?