C Interview Questions
Questions Answers Views Company eMail

How to reverse a linked list

Aricent, Fidelity, IBM, TCS,

1 6378

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 74396

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

7 70335

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

3 8447

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

2 6141

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

Alcatel,

4 31906

implement OR gate without using any bitwise operator.

Alcatel, Wipro,

1 5471

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

Lucent,

2 5029

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 7699

what is difference between C and C++

4 6735

which is faster execution: loops or recursion?

3 6286

#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 7145

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

2838

what is computer

4 5481

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 7865


Post New C Questions

Un-Answered Questions { C }

What is pointer and structure in c?

814


Explain the properties of union. What is the size of a union variable

959


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

899


What is the deal on sprintf_s return value?

871


What is the difference between strcpy() and memcpy() function in c programming?

883


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

916


What is c basic?

934


Explain the advantages of using macro in c language?

796


What is ambagious result in C? explain with an example.

2355


What is return type in c?

918


How can you restore a redirected standard stream?

836


Compare array data type to pointer data type

847


Why should I prototype a function?

890


Do character constants represent numerical values?

1112


write a c program for swapping two strings using pointer

2375