C Interview Questions
Questions Answers Views Company eMail

how to find turn around time in operating system?

3 8227

program to find middle element of linklist?

Huawei,

1 4238

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

Huawei,

1597

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 8824

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)

Subex,

1837

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 )

Persistent,

2 12244

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

Huawei,

2176

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

Huawei,

4 7114

implement general tree using link list

Wipro,

1 9635

What do you mean by team??

Student,

5 12083

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)

Subex, Wipro,

2 15207

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

1 7494

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.

Google, Infosys, JTL, OpenFeel,

3 15526

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.

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

1 11706

What should be keep precautions while using the recursion method?

1 8450


Post New C Questions

Un-Answered Questions { C }

Explain indirection?

615


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

608


What is structure and union in c?

567


What is a good data structure to use for storing lines of text?

569


application attempts to perform an operation?

1471






What is substring in c?

614


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

590


State two uses of pointers in C?

613


What is a nested formula?

577


What is the process of writing the null pointer?

586


What is the purpose of void pointer?

567


Why c is called object oriented language?

561


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

584


What is extern storage class in c?

486


What is main () in c language?

564