C Interview Questions
Questions Answers Views Company eMail

how to find turn around time in operating system?

3 6469

program to find middle element of linklist?

Huawei,

1 3072

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

Huawei,

894




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 6437

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,

1110

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 9664

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

Huawei,

1412

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

Huawei,

4 5311




implement general tree using link list

Wipro,

1 7604

What do you mean by team??

Student,

5 8902

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 12618

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

1 6443

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 10882

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 6978

What should be keep precautions while using the recursion method?

1 6251


Post New C Questions






Un-Answered Questions { C }

provide an example of the Group by clause, when would you use this clause

925


What is the difference between if else and switchstatement

526


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

572


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1033


c program for searching a student details among 10 student details

937






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

870


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

787


all c language question

992


simple program of graphics and their output display

730


char *p="name"; printf(p);

655


write a program to find the given number is prime or not

2329


All technical questions

739


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

930


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

453


2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

1789