C Interview Questions
Questions Answers Views Company eMail

what are the 10 different models of writing an addition program in C language?

724

biggest of two no's with out using if condition statement

5 3461

what is default constructor?

HCL,

2 1993




4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. i have done maximum par but i m findind problem in the commented area. please help...

3 2645

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

TCS, Mind Tree,

1 7077

How to removing white spces in c programming only bu using loops

2 2166

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

1952

#include int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||n++; printf("%d,%d,%d,%d,%d",i,j,k,m,n); }

Sasken, Capital IQ,

12 11400




Find the output? void main() {float a=2.0; printf("\nSize of a ::%d",sizeof(a)); printf("\nSize of 2.0 ::%d",sizeof(2.0));}

TCS, IBM,

11 6964

find largest of 3 no

8 5342

write a program in reverse the string without using pointer,array,global variable declaration,lib fun only using a function?

HCL,

5 9927

Is double link list a linear data structure? If Yes, Why?If No, Why?

4 9427

What is pre-emptive data structure and explain it with example?

2479

why we use pointer in c

HCL, TCS,

7 5623

how can i calculate mean,median,mode by using c program

HCL,

1 9617


Post New C Questions






Un-Answered Questions { C }

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

1028


a c code by using memory allocation for add ,multiply of sprase matrixes

1465


The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.

871


hi send me sample aptitude papers of cts?

917


Write a C program to count the number of email on text

788






You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

1041


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

881


can any one tel me wt is the question pattern for NIC exam

883


write a program in c language to print your bio-data on the screen by using functions.

5421


how to find binary of number?

1873


what is the height of tree if leaf node is at level 3. please explain

873


Why is it important to memset a variable, immediately after allocating memory to it ?

864


Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa. 2. Enter alphanumeric characters and form 2 array alphaets and digits.Also print the count of each array. 3. Find the count of a certain character. 4. Print the positions where a certain character occured. 5. Print the characters between successive array elements. 6. Find the largest and smallest charcter. How many times it each one occured. 7. Enter a certain range. Print out the array elements which occured between these range. 8. Reverse a character array without using another array. 9. Reverse an array region. 10. Replace a the array elements with it next character . Use a after z. 11. Code the array element with certain character as first alphabet. 12. Duplicate all the vowels in a character array. What is the new count. 13. Delete the vowels in a character array. What is the new array count. 14. Print the count of all characters in the array. 15. Enter n alphabets and store a upto tht charcter in array.What is the array count? 16. Sort a character array. 17. Merge 2 character arrays largearray,smallarray. 18. Find the pair with largest number of characters in between. 19. Find the numerical value of a charcter array. 20. Store n numeral characters in an arrray. Insert another numeral character in a certain position. 21. Insert a character in a sorted array. 22. Merge 2 sorted arrays in sorted fashion. 23. Duplicate the least occuring character. 24. Write a menu driven program to circular right/left shift an array of n elements. 25. Is the character array palindrome? if not make it palindrome. 26. Concatenate the first n charaters to the end of the string. 27. Print all n group of chracters which are palindrome. 28. Concatneate the reverse of last n characters to the array.

2630


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

1499


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.

779