submit practical on Email by 29th Jan 2026: sbhs2mail@gmail.com
Write C programs to declare and initialise variables using different data types (char, int, float, char [ ]).
Q 8.4.4: Declare and initialize variables and constants
Q 8.4.5: Implicit vs explicit type casting
Q 9.1.1: Output with putchar, puts, printf
Q 9.1.3: Input with scanf, getch, getche, getchar, gets
Write C programs that use format specifiers (%d, %f, %s, %c), escape sequences (alert, backspace, newline, carriage return, tab, backslash, single quotation mark, double quotation mark, question mark), comments (//, /* */).
Q 9.1.2: Format specifiers examples
Q 9.1.5: Common escape sequences
Write C programs that use operators and its types
Q 9.2.1: Arithmetic operators
Q 9.2.2: Convert arithmetic expression to C
Q 9.2.3: Solve an arithmetic problem
Q 9.2.4: Assignment and compound assignment
Q 9.2.5: Increment and decrement
Q 9.2.6: Relational operators
Q 9.2.7: Logical operators
Q 9.2.10: Conditional (ternary) operator
Q 9.2.11: Operator precedence (simple idea)
Write C programs for each if, if-else and if-else-if.
Q 10.1.4: Program using if
Q 10.1.6: Program using if-else
Q 10.1.8: Program using if-else-if (grading)
Write C programs using switch statement.
Q 10.1.11: Program using switch
No comments:
Post a Comment