C Interview Questions
Questions Answers Views Company eMail

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

Accenture,

1474

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

Infosys, TCS,

4 6066

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

1 3529

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

6 9534

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

Value Labs,

13 18718

is c language is a object oreinted language?

TCS,

5 5380

wat is the meaning of c?

CTS, IBM, Wipro,

9 8358

define switch statement?

CTS,

6 6658

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

3 4247

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 4604

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

TCS,

1 3167

shorting algorithmS

Wipro,

1788

WHAT IS ABSTRACT DATA TYPE

Wipro,

4 5450

FILE PROGRAMMING

Wipro,

1767

SRUCTURE PROGRAMMING

CTS, Wipro,

3 5621


Post New C Questions

Un-Answered Questions { C }

What is queue in c?

565


Why is main function so important?

605


What are the advantages and disadvantages of pointers?

565


What is a pointer and how it is initialized?

592


Explain what does the format %10.2 mean when included in a printf statement?

765






What is the difference between a string and an array?

699


What are header files and explain what are its uses in c programming?

596


Compare interpreters and compilers.

628


What is the size of enum in c?

608


If fflush wont work, what can I use to flush input?

598


How are structure passing and returning implemented?

583


What is declaration and definition in c?

515


Lists the benefits of c programming language?

578


The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.

1620


What is uint8 in c?

627