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 1444

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

1 2054

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 3590




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,

832

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

1 3589

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 3739

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

1 1374

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 3829




What is that continue statement??

4 2215

find the minimum of three values inputted by the user

3 3037

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

3 3664

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

1010

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

2 1594

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

TCS,

3 2283

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

Wipro, NMIMS,

4 8889


Post New C Questions






Un-Answered Questions { C }

write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

629


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

1724


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

1498


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

932


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

2403






the question is that what you have been doing all these periods (one year gap)

864


in linking some of os executables are linking name some of them

797


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

12535


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

3493


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

689


what is bit rate & baud rate? plz give wave forms

721


write a c program to calculate sum of digits till it reduces to a single digit using recursion

1820


what will be the output for the following main() { printf("hi" "hello"); }

5059


A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?

666


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

406