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 1554

how to add two numbers without using arithmetic operators?

4 2397

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

1 1621

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


2 1976

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

2 2171

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

3 5093

array of pointer pointer to array pointer to pointer


1 1768

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

1 1773

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

1 1450

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 2221

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.


how to make a scientific calculater ?


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.


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

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

10 36329

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


Post New C Questions

Un-Answered Questions { C }

c program for searching a student details among 10 student details


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.


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


write a program for the normal snake games find in most of the mobiles.


Write the test cases for checking a variable having value in range -10.0 to +10.0?


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.


how do you programme Carrier Sense Multiple Access


I need previous papers of CSC.......plz help out by posting them.......


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)


Which driver is a pure java driver


please give me some tips for the placement in the TCS.


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.