Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new

 Categories >> Software >> Programming Languages >> C

 C Interview Questions (2264) C++ Interview Questions (1119) VC++ Interview Questions (342) Delphi Interview Questions (510) Programming Languages AllOther Interview Questions (648)
 ```write a c program to calculate sum of digits till it reduces to a single digit using recursion```

 No Answer is Posted For this Question Be the First to Post Answer

  Question Asked @ Answers Other C Interview Questions Go through the following code sinippet char a[20]; a="Hello Orcale Test"; will this compile? Oracle 4 You have an int array with n elements and a structure with three int members. ie struct No { unsigned int no1; unsigned int no2; unsigned int no3; }; Point1.Lets say 1 byte in the array element is represented like this - 1st 3 bits from LSB is one number, next 2 bits are 2nd no and last 3 bits are 3rd no. Now write a function, struct No* ExtractNos(unsigned int *, int count) which extracts each byte from array and converts LSByte in the order mentioned in point1.and save it the structure no1, no2, no3. in the function struct No* ExtractNos(unsigned int *, int count), first parameter points to the base address of array and second parameter says the no of elements in the array. For example: if your array LSB is Hex F7 then result no1 = 7, no2 = 2, no3 = 7. In the same way convert all the elements from the array and save the result in array of structure. Qualcomm 2 What are pointers in C? KPIT 5 write a own function for strstr LG-Soft 1 Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+…………. 1 what is c 1 What is the output of the program #include #include void main() {0 int i,j=20; clrscr(); for(i=1;i<3;i++) { printf("%d,",i); continue; printf("%d",j); break; } getch(); } Oracle 4 how do we remove the printed character in printf statement and write next it it 1 what is the difference between const char *p, char const *p, const char* const p Accenture 5 What is the difference between constant pointer and pointer to a constant. Give examples. TCS 4 Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen) NetApp 1 change to postfix a/(b+c*d-e) Value-Labs 8 For more C Interview Questions Click Here