Tuesday, July 14, 2009

How to print the result in c language?

My actual question is how to print the result or some other thing using c language.


for example:


printf("\nName:X\nFrom:XX...........")...


output will be:


Name:x


From:XX..........





This output i should print in a paper.Pls help meeeee............

How to print the result in c language?
If you want to print variables and string using printf.. you will need to do:


printf("\nName:%s\nFrom:%s\n", str1, str2);





Output: (str1 = John, str2 = Yo)


Name: John


From: Yo


No comments:

Post a Comment