14 C Program

14 C Program1........................C "Hello, World!" Program#include int main(){// printf() displays the string inside quotationprintf("Hello, World!");return 0;}Output:Hello, World!2......................................................C Program to Add Two Integers#include int main(){int firstNumber, secondNumber, sumOfTwoNumbers;printf("Enter two integers: ");// Two integers entered by user is stored using scanf() functionscanf("%d %d", &firstNumber, &secondNumber);// sum of two numbers in stored in variable sumOfTwoNumberssumOfTwoNumbers = firstNumber + secondNumber;// … Continue reading 14 C Program

Advertisements

Here is how you can say ‘Hello World’ in 26 different coding languages

Here is how you can say ‘Hello World’ in 26 different coding languagesSay ‘Hello World’ in 26 Different Programming LanguagesProgramming always fascinates people. Programming forms the core of all computers and “Hello World” is the first phrase that we try out when trying a new coding language. Writing the code for “Hello, world!” program outputs “Hello, World!” … Continue reading Here is how you can say ‘Hello World’ in 26 different coding languages

C Programming Cheat Sheet

C Programming Cheat SheetWhat is C Program?C  is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations. By design, C provides constructs that map efficiently to typical machine instructions, and therefore it has found lasting use in applications that had formerly been … Continue reading C Programming Cheat Sheet

C++ Programming Language Cheat Sheet

C++ Programming Language Cheat SheetWhat is C++?C++  is a general-purpose programming language. It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation. It was designed with a bias toward system programming and embedded, resource-constrained and large systems, with performance, efficiency and flexibility of use as its design highlights.Data TypesSet of … Continue reading C++ Programming Language Cheat Sheet