C Interview Questions
Questions Answers Views Company eMail

What is wrong with this code such that it doesnt produce the input reversed? #include #include #include int main(void) { char Space = ' '; char LineOfText; float count; LineOfText = getchar(); while ((LineOfText = getchar()) != '/n'); { count = strlen(LineOfText) - 1; while (count >= 0) { putchar(LineOfText[count]); count--; } } getchar(); return 0; }

2 1621

how to add two numbers without using arithmetic operators?

4 2453

write a program to add two numbers of any size.....(remember any size)

1 1666




Write a program in c using only loops to print * * * * * *******

IBM,

2 2032

20. main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); } Answer:??????

2 2246

21. #define square(x) x*x main() { int i; i = 64/square(4); printf("%d",i); }

3 5253

array of pointer pointer to array pointer to pointer

MAHINDRA,

1 1811

#include #include void main() { int m=0111,n=20; printf("%d%d\n",m,n); getch(); }

1 1834




Write a program in c to print * * * * * *******

1 1493

Ca some one please help me with aC code to allow user enter numbers from 1 to 20 without repeating and prnt the sum of those numbers thnx

4 2298

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.

1027

how to make a scientific calculater ?

745

You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

1006

Write a program in c to print 1 121 12321 1234321 123454321

Mu Sigma, Wipro, College School Exams Tests, ANR,

10 37206

will u please send me the placement papers to my mail???????????????????

617


Post New C Questions






Un-Answered Questions { C }

Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

1819


writ a program to compare using strcmp VIVA and viva with its output.

718


how to execute a program using if else condition and the output should enter number and the number is odd only...

860


All technical questions

739


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

714






What is C language ?

771


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.

856


to find the closest pair

1012


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

684


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

930


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

686


What is the code for 3 questions and answer check in VisualBasic.Net?

966


4. main() { int c=- -2; printf("c=%d",c); }

555


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

781


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

1118