Posts

Quiz on basic c

Image
C Language Mock Test 📝 C Language Mock Test (30 Marks) 1. Who developed the C programming language? Dennis Ritchie James Gosling Bjarne Stroustrup Charles Babbage 2. Which year was C developed at Bell Labs? 1969–1972 1978 1989 1999 3. Which function is the entry point of every C program? main() start() init() begin() 4. Which symbol is used for single-line comments in C? // /* */ # -- 5. Which data type is used to store decimal values? float int char void 6. In C, which keyword defines a constant variable? const constant ...

Operators and expressions

Operators and Expressions in C In C language, operators are special symbols used to perform operations on data and variables. An expression is a combination of operators and operands (variables/constants) that produces a result. Example: a + b is an expression where + is an operator and a , b are operands. 1. Arithmetic Operators These operators are used for mathematical calculations like addition, subtraction, multiplication, etc. Operators: + (Addition), - (Subtraction), * (Multiplication), / (Division), % (Modulus) #include <stdio.h> int main() {   int a = 10, b = 3;   printf("a+b = %d\\n", a+b);   printf("a-b = %d\\n", a-b);   printf("a*b = %d\\n", a*b);   printf("a/b = %d\\n", a/b);   printf("a%%b = %d\\n", a%b);   return 0; } Output: a+b = 13 a-b = 7 a*b = 30 a/b = 3 a%b = 1 2. Relational Operators These operators are used to co...

Shortcuts

Interactive PC Keyboard Shortcuts 🎹 Interactive PC Keyboard Shortcuts For Windows 10 & 11 🔍 Expand All Collapse All ✨ Essentials Action Shortcut Copy Ctrl C Copy Paste Ctrl V Copy Cut Ctrl X Copy Undo Ctrl Z Copy Redo Ctrl Y Copy 🖥 Windows Shortcuts Action Shortcut Open Start Menu Win Copy Open Task Manager Ctrl Shift Esc Copy Open File Explorer Win E Copy Lock your PC Win L Copy Open Settings Win I Copy 🌐 Browser Shortcuts Action Shortcut New Tab Ctrl T Copy Close Tab Ctrl W Copy Reopen Closed Tab Ctrl Shift T Copy Refresh Page F5 Copy Find on Page Ctrl F Copy 📄 MS Word Shortcuts Action Shortcut Bold Ctrl B Copy Italic ...
C Language Tutorial - Introduction & Basics 🌟 C Language Tutorial for Beginners Welcome! In this tutorial, we’ll learn the basics of C programming step by step with examples and outputs. 1. Introduction to C C is a general-purpose, procedural programming language developed by Dennis Ritchie in 1972 at Bell Labs. It is widely used for system software, operating systems, and embedded programming. ✨ Features of C Simple and powerful Portable (can run on different machines) Structured programming language Fast execution (close to machine language) Base for modern languages like C++, Java, and Python 📌 Structure of a C Program A C program generally follows this structure: #include <stdio.h> // Preprocessor directive int main() { // Main function // Statements return 0; // Exit status } 🔹 Example: Hello World Program ...

C LANGUAGE

C Language – Inventory & Versions 🌟 C Language – Inventory & Versions This page covers the history, versions, syntax, data types, variables, constants, and operators in C with examples. 1. Inventory (History & Origin) Year Event 1969–1972 Developed by Dennis Ritchie at Bell Labs as a system programming language for UNIX. 1978 K&R C (first edition of The C Programming Language book published). 1989 ANSI C (C89) standard approved by ANSI. 1990 ISO C (C90) standardized internationally. 1999 C99 update introduced inline functions, variable-length arrays, // comments, and more. 2011 C11 introduced multi-threading support, Unicode handling, bounds-checking functions. 2018 C18 (minor revision of C11) — bug fixes and clarifications. 2. Why Use C? Foundation of programming – base for languages like C++, Java, C#. System-level programming – OS, compilers,...