1105 Views

Define algorithm And explain the structure of C program with example


Shivasai 26th Jan, 2021
Answer (1)
Tapas Kumar Singh 26th Jan, 2021

Hello dear student


  • Every C-programs needs to have the main function. Each main function contains 2 parts. A declaration part and an Execution part. The declaration part is the part where all the variables are declared.


  • int main() – This is the line from where the execution of the program starts. The main() function starts the execution of any C program. ... printf(“Hello World”) –The printf() command is included in the C stdio. h library, which helps to display the message on the output screen.


Hope that's helpful

Best of luck

Related Questions

Amity University-Noida B.Tech...
Apply
Among top 100 Universities Globally in the Times Higher Education (THE) Interdisciplinary Science Rankings 2026
KIET MBA Admissions 2026
Apply
Affiliated to AKTU | Approved by AICTE | Accredited by NAAC A+ | Rs. 48.89 LPA Highest CTC | Microsoft, Samsung, Infosys, Adobe, Amazon | NIRF-2023...
Amity University-Noida MBA Ad...
Apply
Ranked among top 10 B-Schools in India by multiple publications | Top Recruiters-Google, MicKinsey, Amazon, BCG & many more.
Narayana Business School MBA/...
Apply
Top 30 Private B-Schools Nationally and Top 3 in Gujarat | Highest CTC- 20 LPA | Average CTC- 8.4 LPA | 40% Pre-Placement Offers | 670+ Recruiters 
Amity University | M.Tech Adm...
Apply
Asia’s only university to be awarded the highest accreditation by WASC, USA and by the Quality Assurance Agency for Higher Education (QAA), UK
PML SD Business School PGDM A...
Apply
Offers 2-year full-time PGDM Programme | AICTE Approved | Accepting Exam Scores: CAT, MAT, CMAT, ATMA, GMAT & XAT
View All Application Forms

Download the Careers360 App on your Android phone

Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile

150M+ Students
30,000+ Colleges
500+ Exams
1500+ E-books