C Interview Questions
Questions Answers Views Company eMail

a program that can input number of records and can view it again the record

Accenture,

711

What is the output of below code? main() { static in a=5; printf("%3d",a--); if(a) main(); }

TCS, Infosys,

4 3819

What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }

1 2377




main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }

6 5532

write a c program to add two integer numbers without using arithmetic operator +

Value Labs,

13 13593

is c language is a object oreinted language?

TCS,

5 2841

wat is the meaning of c?

IBM, Wipro, CTS,

9 4510

define switch statement?

CTS,

6 3891




The variables are int sum=10,SuM=20; these are same or different?

3 2276

what is the output of below code int x=8,y; x>>=2; y=x; what is y value. NOTE:EXPLANATION IS COMPALSARY with binary bits

Wipro,

2 2499

write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

TCS,

1 2091

shorting algorithmS

Wipro,

940

WHAT IS ABSTRACT DATA TYPE

Wipro,

4 3423

FILE PROGRAMMING

Wipro,

1005

SRUCTURE PROGRAMMING

CTS, Wipro,

3 3690


Post New C Questions






Un-Answered Questions { C }

Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

886


write a program to rearrange the array such way that all even elements should come first and next come odd

970


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

741


What is the difference between declaring a variable by constant keyword and #define ing that variable?

1582


how we can make 3d venturing graphics on outer interface

2777






pierrot's divisor program using c or c++ code

985


can anyone suggest some site name..where i can get some good data structure puzzles???

914


why wipro wase

1055


how to capitalise first letter of each word in a given string?

715


shorting algorithmS

940


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

1089


what is uses of .net

510


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

894


why we wont use '&' sing in aceesing the string using scanf

1032


write a program to concatenation the string using switch case?

817