C Interview Questions
Questions Answers Views Company eMail

Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

TCS, Vimukti Technologies,

5 4171

5) Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.without using big int and exponential function

TCS,

1 2360

Why is the code below functioning. According to me it MUST NOT.

1 2004




write a program in C to swap two variables

Marlabs, Attrabyte,

7 6029

mplementation of stack using any programing language

Marlabs,

1 2202

How to find the usage of memory in a c program

Infosys,

1 3196

How can you print HELLO WORLD without using "semicolon"?

HCL, Infosys,

7 5837

struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]

3 3773




Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors

3 3053

Write a program that takes a 5 digit number and calculates 2 power that number and prints it

7 3344

I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1135

what will be the output off the following program? #include int main() { int a; a=015+0*71+5; printf("%d,a"); return0; }

HCL,

9 6101

change to postfix a/(b+c*d-e)

Value Labs,

8 3435

write a method for an array in which it can display the largest n next largest value.

Value Labs,

1 2453

write a program to find the largest and second largest integer from an array

Value Labs,

2 7078


Post New C Questions






Un-Answered Questions { C }

what is bit rate & baud rate? plz give wave forms

768


what is the structure pointer?

923


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

976


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

1741


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

1377






7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

1271


difference between Low, Middle, High Level languages in c ?

845


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

1227


write an algorithm to display a square matrix.

1364


C program to find all possible outcomes of a dice?

1166


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

4336


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

878


How to implement a packet in C

1579


Using which language Test cases are added in .ptu file of RTRT unit testing???

1407


write a programming in c to find the sum of all elements in an array through function.

954