You are on page 1of 1

Day1:

when you are scanning a sentence


declare character array and while scanning use
%[^\n]s and while printing print as %s

Day 2:
when you declare double ,scan the identifier values as %lf and to truncate the
float value while printing use %0.1f.

Day 3:
In the case of rounding off the float values we have round() function in c
int value = round(float value)

Day 4:
when you are finding a limit you cant use x<n<y
we have to use as N>x && N<y

Day 5:
----

Day 6:
when you want to rewrite a character array
a[k]='\0';
k=0;
and we again rewrite into the same charcter array

You might also like