Syntax of C program

Syntax:
Includes:  --> Header & Body

Header: Declaration of the program to start with simple input and output.
Main function (body of the program).
printf()—a function to display or print the output.

scanf() is a function to get/fetch the value from the user and run the program that is in the code.

Compiles the program line by line.

#include<stdio.h> 
int main()

{

printf("Pentas Hub Coding centre);

}

Try C Programming - Pentas Hub

Try C Programming

Code here and check your learning progress

main.c — Your Code
Output Preview / Result
Click "Run Code" to see result here...\n\n(Full run + input support opens in new tab)

On mobile: use the toggle buttons to switch between Code & Output
On desktop: both views are shown side by side

Previous Post Next Post

Contact Form