Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

do White Spaces or SpaceBar characters CONSUMEN MEMORY?

RIGHT_THENRIGHT_THEN Member Posts: 154

Gentlemen

Time To Get You Ang:-ory :-)nce m:-)re and
more to come :-).

So Sir WHat Happens To the Code WIth WhiteSpace when Compiled
For Example:-
[code]

int Variable = 1 ; //this is a way to write it "expanded"
int Variable=1; //is also a way to write it "compact"

int
variable
=1; //is a way to write it "expanded"

printf("How Are You Doing"); //is a way of writting "compact"

printf("HOW"
"ARE"
"YOU"
"DOING"
); //is a way of writing "expanded"

printf( " HOW "
" ARE " //althou i know here it is going
" YOU " //to produce these extra spaces
" DOING " //on screen too.
); // BUT
//"Beatutifully expanded"


printf("%d= Journey %d= Money %d= Andcars",Journey,Money,AndCars);

printf( "%d= Journey "
"%d= Money "
"%d= Andcars ",
Journey, //this would have no effect
Money , //on screen output
AndCars //but would .exe expand
);


int Counter=10; //if it was a large file
double Whimsy=500,dourathy=10; //and this was going on
long Crazy,andtired=300; //in more lines it would
char *drowsy={"12323"}; //probably cause migrane
//COMPACT ISNT IT


int Counter = 10 ; /* now what a pleasure */
double Whimsy = 500 ; /* WONDERLAND EXPANSION */
double dourathy = 10 ; /* I WOULD SAY */
long crazy ;
long andtired = 300 ;
char *drowsy = {"12323"} ;


[/code]

so what i want to know is althou on screen "expanded" forms seem
to occupy more lines.does this mean that the .c or .cpp any other
source file we use to store this information will occupy more
bytes because Number Of AlPhaBets Typed are the same only difference
is in WHITE SPACES or SPACeBars and at
Some PLaces ENter TOO.
allright with the Source FIle BUt the EXe File It Should Only COntain
Instructions and not the meaningless white spaces and enters etc etc

so how does making your source file look more
1)ATTRACTIVE
2)UNDERSTANDABLE
3)MAKESENSE ABLE

EFFECT THE SIZE OF EXE FILES WHICH WOULD ACTUALLY BE
IMPLEMENTING IT.

IF NOT THAN IT IS A GOOD NEWS

IF YES THAN BAD
VERY BAD
TOO BAD INDEED.....

BECAUSE MY FILES ARE ALWAYS COMPLAING THAT I NEVER
LET THEN HAVE THE COSMETIC TOUCH.THEY COMPLAIN OF
BEING MISTREATED AND GETTING HURT EVERYTIME I JUST
USE THEM?!!!

THEY FEEL being USED ....gENTLEMEN ^_^

AND WANT TO LOOK TIDY AND CLEAN AND FEEL GOOD ABOUT
THEMSELVES.IN NUTSHELL THEY NEED MAKEUP. :-)

SO I DECIDED to ASK YOU ALL IS THAT GOING TO COST ME
MONEY....THE MEMORY :-)

;-) WOULD I SAVE ON MEMORY OR ONLY A marginal OVERHEA:-)







Comments

  • stoberstober Member Posts: 9,765 ✭✭✭
    [b][red]This message was edited by stober at 2005-8-24 4:31:10[/red][/b][hr]
    1. PLEASE DO NOT POST IN ALL UPPER-CASE LETTERS LIKE THIS!! That is the same as yelling (screaming) to someone and generally considered very rude.

    2. The spaces and carrage-returns (CR) you use in your source code are generally ignored by the compiler unless inside quoted text. So use all the spaces and CR you want, they are only to make the source files easier for you and I to read, not the compiler. The only thing the compiler cares about it that you put at least one space around words so that it can tell the difference between one word and another. You could, actually, write an entire program without any CR at all.




  • RIGHT_THENRIGHT_THEN Member Posts: 154
    : [b][red]This message was edited by stober at 2005-8-24 4:31:10[/red][/b][hr]
    : 1. PLEASE DO NOT POST IN ALL UPPER-CASE LETTERS LIKE THIS!! That is the same as yelling (screaming) to someone and generally considered very rude.
    :

    Thanks indeed Sir

    you dont believe that i would want to be rude with anyone Sir
    But YOur Point Is Taken If That is The Case
    Key Here Is WHich I Noted is "ALL UPPER-CASE LETTERS"
    No i WOnt BE PosTing WIth ALL Upper Case Letters I used THem
    TO aCtually Make THings MOre Clear.BUt i AM NOt Arguing.ALLright
    IF THat Is THe Case.

    BUt If YOU FInd them ANyway DOnt think FOr a Minute That i am Being
    rude
    It is Just A "Case" and After REading What YOU have Said
    i am Actually Cautious That What WOrd you MIght Think Is To offend
    YOU.No no .I rather be Quite THen SHout.My Deepest Apolozies if
    SomeBOdy THinks I would Mean to harm or Offend THem.



    ANd now TO BUSSinEss Thanks Very MUch FOr Telling About
    CArriage Returns and Spaces:-)



  • stoberstober Member Posts: 9,765 ✭✭✭
    :
    : Thanks indeed Sir
    :

    [blue]And please, don't call me Sir -- I work for a living :)[/blue]

Sign In or Register to comment.