Before we begin with our basic concepts of the C programming language let’s take a look at the C Program -Structure of a simple code for better understanding.
A C program consists of the following components−
#include <stdio.h>
1. int main()
2. {
3. /* first program in C */ 4. printf("Hell, World!");
5. return 0;
6. }
Description of the above code:
Let us take a look at how to compile and run a program:
$ gcc filename.c -o filename
$ ./filename
Hello, World!
Make sure the gcc compiler is in your path and that you are running it in the directory containing the source file filename.c.
Now you might have a good understanding of the C Program -Structure.
Note: Also read C Programming Language Overview C Programming Language
Staying up to the mark is what defines me. Hi all! I’m Rabecca Fatima a keen learner, great enthusiast, ready to take new challenges as stepping stones towards flying colors.
Problem Statement: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Example…
Given an integer A. Compute and return the square root of A. If A is…
Given a zero-based permutation nums (0-indexed), build an array ans of the same length where…
A heap is a specialized tree-based data structure that satisfies the heap property. It is…
What is the Lowest Common Ancestor? In a tree, the lowest common ancestor (LCA) of…