Give the syntax and working of simple if Else.
04 c] Give the syntax and working of simple if Else. Answer:- “The if..else statement is an extension of the simple if statement” Syntax:- if (Expression) { (true-block;) Statement1; }…
04 c] Give the syntax and working of simple if Else. Answer:- “The if..else statement is an extension of the simple if statement” Syntax:- if (Expression) { (true-block;) Statement1; }…
04 b] Explain the working of go to statement in C programming. Answer:- “goto is an unconditional branching statement“ Syntax:- goto label; statement1; statement2; label: ➢ A label is a…
04 a] Write a C program to compute the roots of a quadratic equation by accepting the coefficients and printing the appropriate message along with the values. Answer:- Output Enter…
03.c] Compare the working of for, while, and do While along with their syntax. Answer:- i. while loop:➢ It is a pre-test loop (also known as an entry controlled loop).…
03 a] Explain the syntax and working of the switch case statement. Mention in which situation it is desirable. Answer:- Syntax of Switch Case Statement:- switch(choice) { case label1: block1;…
02 b] What is typecasting? Mention its use with a suitable example Answer:- “Typecasting, or type conversion, is a method of changing an entity from one data type to another.” It is…
02] a] List the basic data types available in C. Explain with an example. Integer (int) :- Data type that can store non-decimal numbers in memory. ex:- Floating point (float)…
01 c] List any three input and three output devices of a computer and explain one each. Answer:- Input Devices:- Keyboard: Every computer supports a keyboard – either a physical…
01 a] Define Computer. Broadly classify the computers based on their Speed, Storage, and Price. Answer:- “Computer is an electronic device for storing and processing data, typically in binary form,…
10.C) Narrate the purpose of various C language Pre-processor Directives Answer:-