Skip to main content

Posts

Featured

CODEXCEL Tutorial 02 - Basics of C Programming

CODEXCEL Tutorial 02 - Basics of C Programming  In this post, let's discuss C programming in more detail. We hope to apply the same approach here as we did in our earlier posts. So let's get going on this journey now. Let's begin by running a quick program to review the work we did in our earlier posts. Question 1  - Write a program that subtracts the value 15 from 87 and displays the result, together with an appropriate message, at the terminal. Answer- #include <stdio.h> int main () { int sub; sub = 87-15;   /* COMPUTE RESULT */ printf (“The answer of subtracting 15 from 87 is %i\n” , sub);   /* DISPLAY RESULTS */ return 0; } #include <stdio.h> The standard input-output header file (stdio.h) contains essential functions like printf() and scanf() for C program operations. These files, like printf, reduce code complexity and line count, while also allowing for reusing declared functions, reducing time waste and reducing the number of lines in the code. int main

Latest posts

CODEXCEL Tutorial 01 - Introduction to C Programming

History of C Programming