Skip to main content

Posts

Showing posts with the label Programming C

Understanding Operators and Expressions in Programming C (Type Casting and Operators) || Programming C Notes Unit 002

Understanding Operators and Expressions in C Question : What is operators on Programming C ? Ans: Operators in C programming are symbols that are used to perform operations on operands. These operations can include arithmetic operations, logical operations, bitwise operations, assignment operations , and more. Operators help in manipulating data and controlling the flow of a program.  DIFFERENT TYPES OF OPERATORS: 1) Arithmetic:  In C language, there are five primary arithmetic operators  Used to perform arithmetic operations such as addition, subtraction, multiplication, division, and modulus. : Addition (+) Subtraction (-) Multiplication (*) Division (/) it will provide u divide value not remainder Remainder after division (%), also known as the modulus operator. These operators perform basic mathematical operations like addition, subtraction, multiplication, division, and finding the remainder of integer division. The symbols +, -, *, and / function similarly to o...

Basics of Programming In C || Sesion 1 & 2

1) About Variables In programming C. Ans: What is Variable: C programming me, "variables" wo placeholders hote hain jahan par aap data store karte hain. In variables me aap numeric values, characters, strings, aur doosre data ko store kar sakte hain. Variables ke use se aap program me data ko manipulate aur process kar sakte hain. In Simple term Variable kisi v container ka rkha gya name hota hai, Suppose ham apne gharo me Sugar, Masale etc steel ke container me store kar rhe hai aur uske upar ek label lga rhe us label me hamne sugar likh diya to ab ye label jisme sugar likha hai wo likha hua name programming ki terms me Variable kehlata hai .  U can say variable is the name of a Memory. C programming me, aap variables ko declare karte hain, jisme aap unka data type aur naam specify karte hain. Kuch common data types hain: 1. `int`: Integer values (pooray numbers) ko store karne ke liye, jaise `int age = 25;`. 2. `float`: Floating-point values (decimal numbers) ko store karne...

Programming C Introduction (Variables, Data types, Specifiers, Identifiers) || Programming C Notes Unit 1

Question: What is Psuedo Code ? Psuedo Code:  Pseudocode is a language-agnostic method for describing algorithms using simple English phrases. It's a helpful tool for programmers to develop algorithms without getting bogged down in specific programming language syntax. It allows for a rough design of a solution based on the problem explanation, helping to clarify the logic before diving into coding. With pseudocode, programmers can focus on the problem-solving process rather than the intricacies of coding syntax. The general guidelines for developing pseudocodes are:  Statements should be written in English and should be programming language independent. Steps of the pseudocodes must be understandable. It should be concise. Each instruction should be written in a separate list and each statement in pseudocode should express just one action for the computer. The keywords like READ, PRINT etc should be write in capi- tal letter.  Each set of instruction should written from...