i too recommend C Primer Plus by Stephen Prata. though i haven't mastered it, but i bought it long ago and still believe that it's one of the best C Books because it provides every thing in detail...
Type: Posts; User: javani
i too recommend C Primer Plus by Stephen Prata. though i haven't mastered it, but i bought it long ago and still believe that it's one of the best C Books because it provides every thing in detail...
thank you Quzah. but, can you explain what stdin and ungetc? Upto this chapter, i haven't seen ungetc. I have just seen getc, getcha.
And, suppose, the user enter following line in the prompt:
...
plz help me. it is stucking in second getchar().
while((ch=getchar())!='#')
{
ch1 = ch;
ch2=getchar();
if(ch1=='a' && ch2=='b')
...
sorry, there should be %d, not %c. But, thank you DWKS too for letting idea to minimize the iterations.
i want to find factors of any given number. i am trying in the following way..how far is it right?
for(i=1; i<=num; i++)
{
if(num%i==0)
printf("Factor = %c",i);
}
sorry, u r interpreting wrongly. I am not a computer student nor it's a homework. I am just following book and learning C from that. And, what I am asking is WHAT I don't know, or don't know how to...
BUT, what if I haven't studied pointer, array and functions too. I've just finished studying loop and basic of C like getting characters or lines from key board, and counting them.
Isn't there...
i am thinking to use not strstr. suppose, i don't know about str. i just want to use one character at a time. how to remember previous character and current char?
techies,
i don't where to start to countr two characters in any patterns or from any words like "ei" from "Receive eieiten pooeesiec".
can you give some hints?