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 1500

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

1 2132

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 4020




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,

887

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

1 3673

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 3888

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

1 1437

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 3905




What is that continue statement??

4 2320

find the minimum of three values inputted by the user

3 3139

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

3 3787

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

1089

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

2 1676

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

TCS,

3 2355

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

Wipro, NMIMS,

4 9114


Post New C Questions






Un-Answered Questions { C }

how logic is used

739


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

812


how to print the character with maximum occurence and print that number of occurence too in a string given ?

1269


what is the difference between class and unio?

1095


what is the structure pointer?

924






Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

850


List the variables are used for writing doubly linked list program.

854


what is stack , heap ,code segment,and data segment

1496


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

1941


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

1948


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

961


how to write optimum code to divide a 50 digit number with a 25 digit number??

1959


how we can make 3d venturing graphics on outer interface

2776


in iso what are the common technological language?

921


what are the facialities provided by you after the selection of the student.

946