Harlow Every C Seniors and Superiors here.
I got two very basic and question to ask
printf("Enter num: ");
printf("Enter char: ");
look at this simple coding, after i enter num, i canot enter char.
can some1 tell me the reason why, instead of how cos i know by flushing it, the problem would be solve, and also if i reverse the coding by entering char 1st then entering num, it would also be okay. so what's wrong? pls explain to me generally.
another thing is, if i change the char declartion to string, and i prompt to enter num 1st then enter the string, it works fine too, the reverse, string 1st then num also work fines.
so what wif scanf ?
pls pls pls help very important
printf("Enter string a: ");
printf("Enter string b: ");
how come after scanf for string and i use gets , it cant work. but if i gets 1st then scanf, it work. why ? i know flushing can solve this problem but why ? thanks alot
2nd) pointers and array
i guess i will post this later... THANKS ALL GUYS WHO HELP ME
I REALLY CANT FIND AN ANSWER ON THE NET AND THERE IS NO ONE ARD TO HELP ME
PLS PLS PLS PLS PLS PLS PLS GOD BLESS YOU FOR DOING A KIND DEED TO HELP ME PLS