Message from C, C++ talks

June 2019

— 523 => 325

— Would you mind making me a breakfast?

— Can anyone help with this piece of code ? input format can be found here :

Message permanent page

— Sir can you help


You can use fgets(str, fp) where the string is str and fp is the file pointer.. From fopen(filename, mode)

— But if we want to read from input during run time?

— And not from a file?

— Https://

— Try using printf(" %[^\n] ",....);

— %[^\n]%*c works. but why is the asterisk placed before c and not before \n ??

— Don't place *c

— Just try this

— This works

— That only worked

— This dint