C Interview Questions

What is Bitwise Operator and how it works?

1995

is assignment operator is arithmatic or not

2790

What is the difference between test design and test case design?

697

void main() { static int i = 5; if(--i) { main(); printf("%d ",i); } } what would be output of the above program and justify your answer? }

12610

enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; void main() { int i =0; if( i == sunday) { printf("%d",i); } } what would be the output?

TCS,

3738

int main() { int x = (2,3,4); int y = 9,10,11; printf("%d %d",x,y); } what would be the output?

5931

WRITE A C PROGRAM FOR PRINT "RHOMBUS" STRUCTURE . Example: Enter the numbers :3 * * * * * * * *

12726

Why can't we initialise member variable of a strucutre

1577

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

695

what are bps & baud rates? differentiate these two?

TCS,

2392

write a program that eliminates the value of mathematical constant e by using the formula e=1+1/1!+1/2!+1/3!+

2315

write a c program to calculate the income tax of the employees in an organization where the conditions are given as. (I.T. = 0 if income <100000 I.T = 10% if income _< 200000 it = 20% if income >_ 200000)

57896

write a program to create a sparse matrix using dynamic memory allocation.

3244

What are the different types of pointers?

HCL, TCS,

4389

in a town the percentage of men is 52 the percentage of total literacy is 48 if total percentage of literate men is 35 of the total population write a program to find the total no of the literate men and women if the population of the town is 80000

8909

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

1166

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

4974

using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

387

pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1029

594

987

In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

1836

1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

747

write a program to find the given number is prime or not

2197

write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

1348

diff between exptected result and requirement?

759

in iso what are the common technological language?

849

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

1467

write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare.  You will then tabulate this information in another file.

932

Without Computer networks, Computers will be half the use. Comment.

888