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 2974

how to add two numbers without using arithmetic operators?

4 4676

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

1 2815

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

IBM,

2 3446

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

2 4315

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

3 8276

array of pointer pointer to array pointer to pointer

MAHINDRA,

1 3109

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

1 3008

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

1 2599

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 4280

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.

1716

how to make a scientific calculater ?

1552

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.

1770

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

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

11 59633

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

1355


Post New C Questions

Un-Answered Questions { C }

What is this infamous null pointer, anyway?

600


What is the easiest sorting method to use?

625


What are the keywords in c?

636


Is c easy to learn?

550


What is a structure in c language. how to initialise a structure in c?

595






Are there namespaces in c?

556


What is else if ladder?

600


What is difference between && and & in c?

561


What is getche() function?

599


What is difference between scanf and gets?

601


What is structure data type in c?

558


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

654


What does *p++ do? What does it point to?

606


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

643


can anyone please tell about the nested interrupts?

1670