91. Explain about array declaration and initialization for different data types. The array declaration and initialization for different data types are listed below: •One dimensional Array: ▪Declaration: data_type array_name[size]; ▪Examples: int num[5]; char list[10]; float marks[20]; ▪Initialization at declaration: oint …
71. What happens to the statements written after return statement? The statements after the return statement will not execute. Since the return statement sends the control back to the calling function, the control never reaches the statements written after return …
61. What are nested loops? When are they used? Nested loops are the combination of loops in which body or statements of one of the loops contain another loop. Nested loops can be formed combining different types of loop. •Presence …
51.Explain the role of break statement in switch case. What happens if break statement is not used in any case of switch statement? Break statement is used to skip the part of code in switch case statement. When one case …
41. What do you mean by selective structure? When are they used? Selective structures are those statements which are used to change the order of execution of statements based on certain decision out of many conditions. These structures are used …
31. What are symbolic constants? How are they defined? Symbolic constants, conventionally written in uppercase, are the names which substitute a sequence of character that cannot be changed. The character may be a numeric constant, a character constant, or a …
21.How can we calculate the range of any data type? What is the size and range of signed int, float, long double? General form for the range calculation is given by Lower limit = -2n-1 Upper limit = +2n-1 – 1; Where n …
1. Define software. Explain different types of software. Software is a collection of machine readable instructions that directs a computer to perform some specific tasks. It is an ordered sequence of instructions given for changing the state of the computer …
Presentation on Decision making and Branching Introduction C language possesses such decision making capabilities by supporting the following statements: • if statement • switch statement • Conditional operator statement • goto statement The conditional branching statements help to jump from …
#include <conio.h>#include <stdio.h>void main(){ int m, n, c, d, matrix[10][10], transpose[10][10]; clrscr(); printf(“Enter the number of rows and columns of matrix “); scanf(“%d%d”,&m,&n); printf(“Enter the elements of matrix n”); for( c = 0 ; c < m ; c++ ) …
