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 1639

how to add two numbers without using arithmetic operators?

4 2486

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

1 1688




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

IBM,

2 2053

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

2 2296

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

3 5341

array of pointer pointer to array pointer to pointer

MAHINDRA,

1 1829

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

1 1869




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

1 1513

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 2325

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.

1044

how to make a scientific calculater ?

760

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.

1021

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

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

10 37589

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

632


Post New C Questions






Un-Answered Questions { C }

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); }

812


Give basis knowledge of web designing ...

850


what is the structure pointer?

939


Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

678


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

211






Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

3601


write a program to display all prime numbers

735


what is the significance of static storage class specifier?

887


Why is event driven programming or procedural programming, better within specific scenario?

1212


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

832


Write a c program to demonstrate character and string constants?

948


how to create duplicate link list using C???

1277


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }

1065


what is ur strangth & weekness

1067


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

825