Friday, November 6, 2009

c tutorial-basic commands

Pre processors
#include - stands for standard input & output
#include -needed for clrscr(clear screen)


main()-where the program begins and ends; if it shows void it woud mean it does not have a return value


clrscr()-clears the screen
.

printf("My name is....");-input
scanf-allows the user's input


getch();-lets your read the output on the screen. without it teh prigram will just exit without you seeing the output

No comments:

Post a Comment