How to print "Hello World" in C programming language
| Basic programs of C Programming Language - P_01
"C PRACTICE QUESTIONS"
Program 01: Write a program in 'C' to print "Hello MHR"
// Write a program in 'C' to print "Hello MHR!"
// In new editor.
#include <stdio.h>
int main()
{
printf("Hello MHR!");
return 0;
}
Or
// In turbo C/C++
#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
printf("Hello MHR!");
getch();
}
0 Comments