C Interview Questions
Questions Answers Views Company eMail

Print the foll in C...eg when n=5 the o/p must b + + + + + + + + + + + + + + + + +

1 1606

how can i get output like this? 1 2 3 4 5 6


6 3282

what is the output of following question? void main() { int i=0,a[3]; a[i]=i++; printf("%d",a[i] }

3 2301


2 1934

what is the difference between c and java?

1 2609

what is mallloc()?how it works?


4 3590

how can we use static and extern?and where can we use this?


3 4309

how to use enum datatype?Please explain me?


3 3247

What is RAM memory? and What is ROM?Who designed one is temparary and another is permanent?why they designed like that?By using far pointer which type data(whether hexadecimal)we can access?


1 3149

What are the languages are portable and platform independent?Why they are like that?

Satyam, Excel,

1 2173

pointer_variable=(typecasting datatype*)malloc(sizeof(datatype)); This is the syntax for malloc?Please explain this,how it work with an example?

kenexa, eClerx, Excel,

2 5717

how can i get this by using for loop? * ** * **** * ******


3 2235

#include int main ( int argc, char* argv [ ] ) { int value1 = 10; int value2 = 5; printf ( "\n The sum is :%d", value1 | value2 ); } This is the answer asked by some one to add two numbers with out using arithmetic operator?Yes this answer is write it given out put as 15.But how????? what is need of following line? int main ( int argc, char* argv [ ] ) how it work?what is the meaning for this line? please explain me.Advance thanks


9 7259

Why data types in all programming languages have some range? Why ritche have disigned first time likethat?Why not a single data type can support all other types?


2 2587

write a program structure to find average of given number

1 3738

Post New C Questions

Un-Answered Questions { C }

will u please send me the placement papers to my mail???????????????????


#include { printf("Hello"); } how compile time affects when we add additional header file .


number of times a digit is present in a number


what is the height of tree if leaf node is at level 3. please explain


Why we not create function inside function.


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


i have a written test for microland please give me test pattern


what are # pragma staments?


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555


C program to find all possible outcomes of a dice?


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1


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


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