Join Regular Classroom : Visit ClassroomTech

October 2020

Essay Writing

Essay Writing – 1 Inside a T-school there will always be many interest based associations like committees and clubs. Were you a part during the last three years? If yes, why did you choose to be a part of the same? What do you think are there any merits of being a part of such […]

Essay Writing Read More »

Automata Fixing

In any program, there are three types of errors.1. Syntax Error that is for violation of grammar2. Logical Errors that is for errors occur during coding process.3. Run Time Errors that occurs when we attempt to run the ambiguous instructions. Find out the errors Explanation:Here in the 6th line ‘b’ is  used but it is

Automata Fixing Read More »

Coding Question 45

Write a C-program to implement binary searching. #include <stdio.h> int main() { int c, first, last, middle, n, search, array[100]; printf("Enter number of elementsn"); scanf("%d",&n); printf("Enter %d integersn", n); for (c = 0; c < n; c++) scanf("%d",&array); printf("Enter value to findn"); scanf("%d", &search); first = 0; last = n – 1; middle = (first+last)/2;

Coding Question 45 Read More »

Coding Question 44

Write a recursive C program to multiple two 3×3 matrices. #include <stdio.h> void multiply(int, int, int [][10], int, int, int [][10], int [][10]); void display(int, int, int[][10]); int main() { int a[10][10], b[10][10], c[10][10] = {0}; int m1, n1, m2, n2, i, j, k; printf("Enter rows and columns for Matrix A respectively: "); scanf("%d%d", &m1,

Coding Question 44 Read More »

Coding Question 43

Write a program to insert an element (given by the user) into an array in a particular position(given by the user). #include <stdio.h> int main() { int i, n, val, a[100],pos; printf("Enter number of elementsn"); scanf("%d",&n); printf("Enter %d integersn", n); for (i = 0; i < n; i++) { printf("n Enter a number: "); scanf("%d",&a[i]);

Coding Question 43 Read More »

Coding Question 42

Write a program to find the transpose of a matrix. #include<stdio.h> int main() { int a[3][3],i,j,val,row,col,k; for(i=0;i<3;i++) { for(j=0;j<3;j++) { printf("n Enter a number: "); scanf("%d",&a[i][j]); } } for(i=0;i<3;i++) { printf("n"); for(j=0;j<3;j++) { printf("%dt",a[i][j]); } } printf("n Transpose Matrix: "); for(i=0;i<3;i++) { printf("n"); for(j=0;j<3;j++) { printf("%dt",a[j][i]); } } return 0; } Join Our Telegram Group

Coding Question 42 Read More »

Coding Question 41

Write a C program which will take input in a 2D array and then take one integer as input and search it is available or not, if it is available display the row and column of the integer. #include<stdio.h> int main() { int a[3][3],i,j,val,row,col,k; for(i=0;i<3;i++) { for(j=0;j<3;j++) { printf("n Enter a number: "); scanf("%d",&a[i][j]); }

Coding Question 41 Read More »

Coding Question 40

Write a program to create an array of n elements and then print maximum and minimum elements from that array. #include<stdio.h> int main() { int i,max,min,a[10]; for(i=0;i<10;i++) { printf("n Enter a Number: "); scanf("%d",&a[i]); } for(i=0;i<10;i++) { printf("n%d",a[i]); } max=min=a[0]; for(i=0;i<10;i++) { if(a[i]>max) max=a[i]; if(a[i]<min) min=a[i]; } printf("n %d is max",max); printf("n %d is min",min);

Coding Question 40 Read More »