Month: October 2020

Off-Campus Drive: HCL Technologies

Associate Graduate Engineer Trainee post Nellore: HCL Technologies, a multinational national company is going to conduct an off-campus drive at Geethanjali Institute of Science and Technology (GIST) on Saturday, 2nd November 2020 to fill up the vacancies of Associate Graduate Engineer Trainee post. Eligibility Criteria The candidates must be B.E. or B.Tech in CSE/ECE/EEE/EIE/IT or MSc computers …

Off-Campus Drive: HCL Technologies Read More »

Coding Question 45

Write a C-program to implement binary searching. C C #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; while (first <= last) {if …

Coding Question 45 Read More »

Coding Question 44

Write a recursive C program to multiple two 3×3 matrices. C C #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, &n1);printf(“Enter rows and …

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). C C #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]);} for (i = 0; …

Coding Question 43 Read More »

Coding Question 42

Write a program to find the transpose of a matrix. C C #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;}

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. C C #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 Enter …

Coding Question 41 Read More »

Page 1 of 4
1 2 3 4