C Interview Questions
Questions Answers Views Company eMail

how does the C compiler interpret the following two statements p=p+x; q=q+y; a. p=p+x; q=q+y b. p=p+xq=q+y c. p=p+xq; q=q+y d. p=p+x/q=q+y

TCS, Tech Synergy,

2 9844

write a C and C++ programme to implement the A,bubble sort B,quick sort C,insertion sort D,sequential search E,binary search

ADP, TCS,

1 5443

There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?

Hathway,

1 4308

What is information technology.

1 3070

1.Why do you call C is middle level language? 2.Why do you call C is userfriendly language.

2 5169

why do we use pointer instead directly acessing the data?

2 4427

while initialization of array why we use a[][2] why not a[2][]...?

Aptech,

1846

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

Aptech,

2018

is it possible to change the default calling convention in c ?

Aptech,

1 3593

while initialization of two dimensional arrays we can initialize like a[][2] but why not a[2][] is there any reason behind this?

Aptech,

4 6191

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

2708

sir i wanted to know how we wap in c to add numbers without using arithmetic operator in which digits are entered by user?

2 5550

what is the output of printf("%d",(scanf("%d",10));

10 16473

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

1687

Q.11 Generate the following pattern using code in any language(c/c++/java) for n no. of rows 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

2 5215


Post New C Questions

Un-Answered Questions { C }

What are the advantages and disadvantages of pointers?

563


What is string concatenation in c?

556


What do you mean by keywords in c?

610


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

616


Tell us the use of fflush() function in c language?

622






can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1394


Write a simple code fragment that will check if a number is positive or negative.

695


How was c created?

579


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

1887


What is hashing in c language?

591


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

2117


What is the difference between int main and void main in c?

581


Can main () be called recursively?

613


Should I learn c before c++?

584


Simplify the program segment if X = B then C ← true else C ← false

2571