C Program To Print A String On The Screen.
Q1. Write a C program to print a string on the screen.
Solution:
//My first C program
#include<stdio.h> //standard input/output header file
int main()
{
printf(“WELCOME TO C PROGRAMMING”); //standard output function in stdio.h file
getch(); //holds the screen until a key is pressed
return 0; // makes the main() to finish
}
OUTPUT:
WELCOME TO C PROGRAMMING