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 1590

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

1 2243

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.

Cisco,

1 4588




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

ADP,

994

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

1 3798

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; } }

CSC,

7 4091

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

1 1557

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 4017




What is that continue statement??

4 2460

find the minimum of three values inputted by the user

3 3280

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

3 3957

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

1236

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

2 1789

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

TCS,

3 2505

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

Wipro, NMIMS,

4 9475


Post New C Questions






Un-Answered Questions { C }

int far *near * p; means

2325


what is the difference between class and unio?

1180


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.

903


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

1392


what is event driven software and what is procedural driven software?

1322






what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

551


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1146


how to create duplicate link list using C???

1347


what is uses of .net

606


How do we make a global variable accessible across files? Explain the extern keyword?

759


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

780


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

966


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

288


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

733


Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

753