C Interview Questions
Questions Answers Views Company eMail

write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

1647

what is printf

MVSR, Satyam,

5 5216

Write a program for print infinite numbers

Wipro,

3 9868

3. Program to print all possible substrings. ex: String S St Str Stri Strin String t tr tri trin tring r

Huawei,

3 24508

write a pgm to print 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1

3 5243

main() { int x=2, y=4 if ((x==2||y==4) x++ y++ if (y==4+1) { x=x+y; } y++; printf("The values of x and y are %d and %d."x,y); } What is the output?

TCS,

5 7495

void main() {int i=2; printf("%d%d%d",i,++i,i++); getch(); }

9 7422

Input is "Jack and jill went up a hill" To print output is 1-letter word(s)-1 2-letter words-1 3-letter words-1 4-letter words-4

Mind Tree, TCS,

1 11723

Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1554

what is stack , heap ,code segment,and data segment

2195

How to swap 3 numbers without using 4th variable?

5 19382

write a program that will read the temperature in Celsius and convert that into Fahrenheit.

1 4064

write a program to print the one dimensional array.

1 4581

how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?

1530

Is an array parameter is always "by reference" ?

1 2765


Post New C Questions

Un-Answered Questions { C }

What are control structures? What are the different types?

567


which is conditional construct a) if statement b) switch statement c) while/for d) goto

715


Where are some collections of useful code fragments and examples?

685


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

550


What is the size of a union variable?

571






Is Exception handling possible in c language?

1552


Tell me can the size of an array be declared at runtime?

570


Why use int main instead of void main?

576


What is the difference between union and anonymous union?

805


What is the difference between a function and a method in c?

533


What is a ternary operator in c?

621


What is c definition?

722


What is the significance of c program algorithms?

654


Can stdout be forced to print somewhere other than the screen?

589


Is it better to use a macro or a function?

623