C Interview Questions
Questions Answers Views Company eMail

how to find turn around time in operating system?

3 6347

program to find middle element of linklist?


1 2982

program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)



pgm to reverse string using arrays i.e god is love becomes love is god) (assumption:only space is used for seperation of words) no addtional memory used.i.e no temporary arrays can used.

Persistent, Valyoo,

4 6256

pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)



pgm in c to reverse string by word using array(god is love becomes love is god) (no additional array can used,space is only delimiter between words )


2 9392

pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)



pgm to find middle element of linklist(in efficent manner)


4 5202

implement general tree using link list


1 7362

What do you mean by team??


5 8729

pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

Wipro, Subex,

2 12329

Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.

1 6348

Write the following function in C. stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return - 1. The function should not make use of any C library function calls.

Infosys, Google, JTL, OpenFeel,

3 9916

Write an interactive c program that will encode or decode a line of text. To encode a line of text, proceed as follows: Convert each character, including blank spaces, to its ASCII equivalent. Generate a positive random integer. Add this integer to the ASCII equivalent of each character. The same random integer will be used for the entire line of text. Suppose that N1 represents the lowest permissible value in the ASCII code, and N2 represents the highest permissible value. If the number obtained in step 2 above exceeds N2, then subtract the largest possible multiple of N2 from this number, and add the remainder to N1. Hence the encoded number will always fall between N1 and N2, and will therefore always represent some ASCII character. Display the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text. Be certain, however, that the same random number is used in decoding as was used in encoding.

TCS, HCL, Wipro, Amazon, Microsoft, CSJM,

1 6833

What should be keep precautions while using the recursion method?

1 6032

Post New C Questions

Un-Answered Questions { C }

code for quick sort?


which is an algorithm for sorting in a growing Lexicographic order


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);


how logic is used


Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.


write a proram to reverse the string using switch case?




Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon


what is the different bitween abap and abap-hr?


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a


using for loop sum 2 number of any 4 digit number in c language


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply


what is ur strangth & weekness


write a c program in such a way that if we enter the today date the output should be next day's date.


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel