I have an exam on C coming up and one of the past papers has the following question:
we have this loop :
for( i = 0; i < 127 && (c=getchar()) != '\n'; i++)
s[i] = c ;
Type: Posts; User: meltingdude
I have an exam on C coming up and one of the past papers has the following question:
we have this loop :
for( i = 0; i < 127 && (c=getchar()) != '\n'; i++)
s[i] = c ;
Can someone please tell me what the following format specifier does exactly? I understand what the specifiers in general mean, and how to use them , but I have never seen this one before
...
I'll get straight to the point.
I have the following procedure:
public static String readLine (String prompt) {
System.out.print( prompt );
never mind ppl.....
i figured it out lol ....
Hi,
Im a little new to the C language and could use some help.
I understand that gets( ) can be used to read a line of input from stdin, as can sscanf etc
and I understand that fscanf can be...