C Interview Questions
Questions Answers Views Company eMail

how to find turn around time in operating system?

3 6584

program to find middle element of linklist?

Huawei,

1 3150

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

Huawei,

939




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 6576

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,

1156

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 9899

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

Huawei,

1487

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

Huawei,

4 5395




implement general tree using link list

Wipro,

1 7785

What do you mean by team??

Student,

5 9126

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 12861

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

1 6524

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 11581

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, HCL, Microsoft, TCS, Wipro, CSJM,

1 7171

What should be keep precautions while using the recursion method?

1 6490


Post New C Questions






Un-Answered Questions { C }

All technical questions

797


Why is it important to memset a variable, immediately after allocating memory to it ?

884


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

521


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

781


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

848






FILE PROGRAMMING

1061


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

3065


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

859


can we change the default calling convention in c if yes than how.........?

1315


what type of questions arrive in interview over c programming?

902


what is the diffrenet bettwen HTTP and internet protocol

730


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.

872


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

1026


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

2057


p*=(++q)++*--p when p=q=1 while(q<=6)

553