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 1559

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

1 2206

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 4405

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 3757

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 4028

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

1 1525

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 3981

What is that continue statement??

4 2415

find the minimum of three values inputted by the user

3 3230

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

3 3905

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 1749

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


3 2461

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

Wipro, NMIMS,

4 9364

Post New C Questions

Un-Answered Questions { C }

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


I need previous papers of CSC.......plz help out by posting them.......




Stimulate calculator using Switch-case-default statement for two numbers


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?


Without Computer networks, Computers will be half the use. Comment.


how do you programme Carrier Sense Multiple Access


1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if


Can you write the algorithm for Queue?


what is the difference between class and unio?


What is the code for 3 questions and answer check in VisualBasic.Net?


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .


find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }