C Interview Questions
Questions Answers Views Company eMail

Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

881

Can you think of a logic behind the game minesweeper.

956

Why is it important to memset a variable, immediately after allocating memory to it ?

841




What is output of the following program ? main() { i = 1; printf("%d %d %d\n",i,i++,i++); }

Wipro, CTS,

9 3616

using for loop sum 2 number of any 4 digit number in c language

889

write an algorithm to display a square matrix.

1376

How will you allocate memory to a double pointer ?

2 2480

how do you programme Carrier Sense Multiple Access

822




how can make variable not in registers

TCS,

1 1199

what is d pitfalls of registers variables

TCS,

3 2412

what is the hardware model of CFG( context free grammar)

Microsoft,

1512

Define a structure to store the record of library. The record must consist of at least following fields: Title, Author, Edition, Price, Publisher, and Category. -Define functions authorSearch ( ), TitleSearch ( ) and CategorySearch ( ) to search a book with respect to author, title and category. [There can be more than one book, written by one author, in one category]

2 2591

what is bitwise operator?

IBM,

1 1773

what is c?

IBM, TCS,

4 2133

write a program to print data of 5 five students with structures?

885


Post New C Questions






Un-Answered Questions { C }

Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

867


what is ur strangth & weekness

1065


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

882


how to find anagram without using string functions using only loops in c programming

1923


what is event driven software and what is procedural driven software?

1246






c language interview questions & answer

727


why wipro wase

1064


given post order,in order construct the corresponding binary tree

1625


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

990


the question is that what you have been doing all these periods (one year gap)

939


please send me the code for multiplying sparse matrix using c

1018


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

1042


#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

271


to find the closest pair

1028


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

1186