Blogware Logo
Blogware
Home
Celebriware
Feedback
Need Help?
ImageSurajit Nandy
Published on : 27th Sep 2021
Cover Image
Print Hello, World! in C programming
#include <stdio.h> int main(int argc, char **argv) { printf("Hello, World!"); return 0; }
Output: Hello, World!
Hold on! There are a lot of things is going on.
#include is a preprocessor directive. It is used to include all the declations present in stdio.h file. Here, .h stands for header file.
main() is a function that take two arguments. The first argument of type integer used to count the no. of arguments and the second one is to point the passed arguments at the time of execution of the program.
printf() is a function that takes a string. printf() function is used to print on the console.
The main() function returns 0 to the operating system to indicate that the program has run successfully.
That's all!
CelebriwareProductsServicesAdvertisementInvestorsPrivacy PolicyTerms of Service
Blogware Logo
Copyright © 2025 Blogware. All rights reserved.