C Interview Questions
Questions Answers Views Company eMail

How to reverse a linked list

Aricent, Fidelity, IBM, TCS,

1 6044

1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)

Eskom, TCS,

12 72060

write a c program to store and print name,address,roll.no of a student using structures?

7 68695

Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates

3 7686

Reverse the bit order in a single macro. eg. i/p = 10010101 --> o/p = 10101001

2 5647

implement NAND gate logic in C code without using any bitwise operatior.

Alcatel,

4 30755

implement OR gate without using any bitwise operator.

Alcatel, Wipro,

1 5024

Is the below things valid & where it will be stored in memory layout ? static const volatile int i; register struct { } ; static register;

Lucent,

2 4491

in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?

Infosys, NetApp,

4 6864

what is difference between C and C++

4 5811

which is faster execution: loops or recursion?

3 5418

#include #include void main() {clrscr(); char another='y'; int num; for(;another=='y';) { printf("Enter a number"); scanf("%d",&num); printf("squre of %d is %d",num,num*num); printf("\nwant to enter another number y/n"); scanf("%c",&another); } getch(); } the above code runs only one time.on entering 'y' the screen disappeares.what can i do?

3 6294

Simplify the program segment if X = B then C ← true else C ← false

2573

what is computer

4 4635

we compile c program in 32 processor and 64 bit processor .exe file is created in both the processors. if we want to run .exe file in 64 bit processor which is created in 32 bit processor. is that .exe file is run or not if it is not run why?

HP, Wipro,

4 7162


Post New C Questions

Un-Answered Questions { C }

How is pointer initialized in c?

573


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

2737


How to find a missed value, if you want to store 100 values in a 99 sized array?

800


What is a const pointer in c?

656


Why do we use static in c?

621






Explain enumerated types.

586


console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above

645


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

608


How do I swap bytes?

617


What is an array? What the different types of arrays in c?

643


How can I use a preprocessorif expression to ?

589


Can an array be an Ivalue?

652


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2171


an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational

796


What is the meaning of 2d in c?

594