C Interview Questions
Questions Answers Views Company eMail

can we store values and addresses in the same array? explain

TCS,

3 5618

what is the difference between NULL('\0') and 0?

Microsoft,

14 9742

IS it possible to define a zero sized array in c.if it is possible how can the elements of that array can be accessed.array index starts from zero,if it is possible to define zero sized array how can be its first element can be accesseed.

TCS,

5 3805




what is function pointer?

Wipro,

2 2881

write a c program to convert fahrenheit to celsius?

TCS,

4 9374

There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.

2008

Write a program to print distinct words in an input along with their count in input in decreasing order of their count

1152

write a program to convert a expression in polish notation (postfix) to inline (normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix

2089




Program to simulate second clock

2 1810

to convert a string without using decrement operater and string functions

1 1701

main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }

6 6313

What is the difference between i++ and i+1 ?(in terms of memory)

HCL,

3 8913

Difference between for loop and while loop?

1 2758

1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

1 1393

1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

3 1470


Post New C Questions






Un-Answered Questions { C }

c program to compute AREA under integral

949


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

647


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

1235


At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with these names could be kept in that shelf as in this example: bottom of shelf ---> [AAAJKRDFDEWAAYFYYKK]-----Top of shelf. All these packets are to be loaded on cars. The cars are lined in order, so that the packet could be loaded on them. The cars are also named [A, B, C, D, E,………….]. Each Car will load the packet with the same alphabet. So, for example, car ‘A’ will load all the packets with name ‘A’. Each particular car will come at the loading point only once. The cars will come at the loading point in alphabetical order. So, car ‘B’ will come and take all the packets with name ‘B’ from the shelf, then car ‘C’ will come. No matter how deep in the shelf any packet ‘B’ is, all of the ‘B’ packets will be displaced before the ‘C’ car arrives. For that purpose, some additional shelves are provided. The packets which are after the packet B, are kept in those shelves. Any one of these shelves contains only packets, having the same name. For example, if any particular shelf is used and if a packet with name X is in it, then only the packets having names X will be kept in it. That shelf will look like [XXXXXXX]. If any shelf is used once, then it could be used again only if it is vacant. Packets from the initial shelf could be unloaded from top only. Write a program that finds the minimum total number of shelves, including the initial one required for this loading process.

940


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

666






Write a c program to build a heap method using Pointer to function and pointer to structure ?

3428


how to execute a program using if else condition and the output should enter number and the number is odd only...

853


what is the syallabus of computer science students in group- 1?

1057


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

1931


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

1533


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

713


char *p="name"; printf(p);

647


Write a progarm to find the length of string using switch case?

818


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

953


how to find anagram without using string functions using only loops in c programming

1897