C Interview Questions
Questions Answers Views Company eMail

how can i include my own .h file EX:- alex.h like #include, rather than #include"alex.h"

1 1412

how i m write c program 1.check prime number 2.prime number series

1 2016

main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time.


1 3394

write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3



write a program to find lcm and hcf of two numbers??

1 3540

1. What will be the output of the following programs. a) #include Main() { Int x=4; While(x==1) { X=x-1; Printf(ā€œ%dā€,x); --x; } }


7 3666

what are threads ? why they are called light weight processes ? what is the relation between process and threads ?

1 1333

what is difference between userlevel threads and kernel level threads ?what are the trades offs between these two approaches ? what approach is most frequently used and why ?

1 3779

What is that continue statement??

4 2165

find the minimum of three values inputted by the user

3 2992

write a program that accepts 3 numbers from the user. dispaly the values in a descending order.

3 3590

Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff


is forign key will be unique key any table or not?

2 1554

can we declare a variable in different scopes with different data types? answer in detail


3 2241

An array name contains base address of the array. Can we change the base address of the array?

Wipro, NMIMS,

4 8751

Post New C Questions

Un-Answered Questions { C }

void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...


What will be the output of following program #include main() { int x,y = 10; x = y * NULL; printf("%d",x); }


i want to know the procedure of qualcomm for getting a job through offcampus


how logic is used


in iso what are the common technological language?


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.


what value is returned to operating system after program execution?


write a program to rearrange the array such way that all even elements should come first and next come odd


Write a program that accept anumber in words


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10