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?

917

what is printf

Satyam, MVSR,

5 3142

Write a program for print infinite numbers

Wipro,

3 6186




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

Huawei,

3 21402

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

3 3819

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 4337

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

9 3075

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

TCS, Mind Tree,

1 4076




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.

779

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

1537

How to swap 3 numbers without using 4th variable?

5 16158

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

1 3096

write a program to print the one dimensional array.

1 3521

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 ?

843

Is an array parameter is always "by reference" ?

1 1733


Post New C Questions






Un-Answered Questions { C }

what are # pragma staments?

854


1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

912


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

2721


write a progrmm in c language take user interface generate table using for loop?

838


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

2138






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

1001


int far *near * p; means

2250


How will you find a duplicate number in a array without negating the nos ?

947


how to count no of words,characters,lines in a paragraph.

3160


Without Computer networks, Computers will be half the use. Comment.

1027


Between macros and functions,which is better to use and why?

854


can anyone please tell about the nested interrupts?

911


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

789


main() { static char *s[]={"black","white","yellow","voilet"}; char **ptr[]={s+3,s+2,s+1,s}, ***p; p=ptr; **++p; printf("%s",*--*++p+3); }

846


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

1764