C Interview Questions
Questions Answers Views Company eMail

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

872

#include #include int main() { int a[4][4]={{5,7,5,9}, {4,6,3,1}, {2,9,0,6}}; int *p; int (*q)[4]; p=(int*)a; q=a; printf("\n%u%u",p,q); p++; q++; printf("\n%u%u",p,q); getch(); return 0; } what is the meaning of this program?

2 2344

what is void pointer?

Wipro,

1 2596




1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

2018

void main() { int a=1; while(a++<=1) while(a++<=2); }

HCL,

4 4021

The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

1 1921

being a chemical engineer and with an aggregate of 80% why you opt for TCS and not your core industry?

TCS,

1 2684

write a program for egyptian fractions in c?

Satyam,

1 5235




How to write the code of the program to swap two numbers with in one statement?

2 3795

write a program to display & create a rational number

TCS, HCL,

1 2678

who developed c and why he developed c?

5 8203

WHO WROTE C LANGUAGE?

4 4946

WHAT IS C?

6 2744

WHAT IS LOW LEVEL LANGUAGE?

2 1873

WHAT IS HIGH LEVEL LANGUAGE?

2 2363


Post New C Questions






Un-Answered Questions { C }

how do you programme Carrier Sense Multiple Access

880


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

784


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

1507


Can you write the algorithm for Queue?

868


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

3109






A set of N billiard balls are set on a one-dimensional table. The table is 1 meter long, set north-south with two pockets at either side. Each ball has zero width and there is no friction so it is moving with a fixed velocity of either northward or southward and bounces back in a perfect elastic collision from other balls it encounter on its way (or drop into one of the pockets). Your job is to keep track of the balls movements. Task Please write a program that gets the initial place, speed and direction of all the balls and gives the position of a specific ball after t seconds. Input The first line contains the number of scenarios. Each one of the other lines in the input contains a scenario: The first number, N, is the number of balls; followed by N pairs of numbers: the distance in centimeters from the south end of the table and the speed (positive speed meaning it moves northward); the last two numbers are the number i of the target ball you should track and the time T in seconds. Output The output is a single number for each line which is the place (distance in centimeters from the south end of the table) of the tracked ball after T seconds. Note: There is no new line character at the end of the result. Sample Input 5 1 50 1 1 1000 1 50 1 1 6 1 60 -2 1 6 2 10 1 95 -1 2 30 2 10 1 95 -1 2 60 Sample Output 100 56 48 65 70

1386


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

819


what are non standard function in c

721


how to find binary of number?

1928


difference between native and cross compilers

941


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

2003


can anyone suggest some site name..where i can get some good data structure puzzles???

979


string reverse using recursion

1145


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

980


number of times a digit is present in a number

874