C Interview Questions
Questions Answers Views Company eMail

What is floating point exception error? And what are different types of errors occur during compile time and run time? why they occur?

1 3112

Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line.

Persistent, Subex,

4 50428

write a addition of two no. program with out using printf,scanf,puts .

4 12832

what is differnence b/w macro & functions

1 3275

Can u return two values using return keyword? If yes, how? If no, why?

7 7858

program to find the ASCII value of a number

8 21261

please send me papers for Dy. manager IT , PNB. it would be a great help for me.

1956

#define d 10+10 main() { printf("%d",d*d); }

6 16734

What is meaning of tree

1548

to find the program of matrix multiplication using arrays

Bhel,

6 19365

WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1463

write a programe returns the number of times the character appears in the string

2 3778

Write a program that takes three variables(a,b,c) in as separate parameters and rotates the values stored so that value a goes to b,b,to c and c to a

7 25439

1. Duplicate the even numbers. -1 Sample I/O Array1:- 4,2,24,3,22 Updated Array:- 4,4,2,2,24,24,3,22,22 2. Reverse the array in a region - 1 Sample I/O Array1:- 4,2,24,3,22,41,21 Enter Region:- 2,5 Update Array:-4,41,22,3,24,2,21 3. Store first the even digits in an array and then odd digits in same array -2 Sample I/O Array1:- 4,2,24,3,22,41,21 Array 2:- 4,2,2,4,2,2,4,2,3,1,1 4. Store the count of the digits in all numbers in an array and print the count. -2 Sample I/O Array1:- 4,2,9,3,7,41,28 Array 2:- 0,1,1,1,2,0,0,1,1,1 1-1;2-1;3-1;4-2;7-1;8-1;9-1 5. Store all palindrome numbers in to another array -2 Sample I/O Array1:- 4,22,9,313,7,141,28 Array 2:- 4,22,9,313,141 6. Arrange the array in such a way that odd numbers come first and then even numbers -1 Sample I/O Array1:- 4,22,9,313,7,141,28 Update Array1:- 9,313,7,141,4,22,28 7. Store into another array by inserting it in the right place - 2 Sample I/O Array1:- 4,22,9,313,7,141,28 Array2:- 4 /4,22 /4,9,22 /4,9,22 ,313 /4,7,9,22 ,313 /4,7,9,22 ,141,313 / 4,7,9,22,28 ,141,313 8. Merge two sorted arrays in a sorted fashion - 3 Sample I/O Array 1:- 3,6,7,9,11,16 Array 2:- 1,2,5,7,20 Array 3:- 1,2,3,5,6,7,9,11,16,20 9. Upadte the array so that an array element is followed by its revere - 1 Sample I/O Array 1:- 13,63,74,9,11,16 Updated Array 1:- 13,31,63,36,74,47,9,9,11,11,16,16 10.Spread the digits of the array in the same array. -1 Sample I/O Array 1:- 13,63,74,9,11,16 Updated Array 1:-1,3,6,3,74,9,1,1,1,6 11.Shift the boundary of array to have only 2 digit numbers. Sample I/O Array 1:- 139,643,74,9,101,126 Updated Array 1:- 13,96,43,74,91,11,26 12.Print the largest occuring digit in an array of N numbers. Sample I/O Array 1:- 13,63,74,9,11,16 1 occurs most.

Intel,

2 3759

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.

1 3590


Post New C Questions

Un-Answered Questions { C }

What does main () mean in c?

617


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1895


How is = symbol different from == symbol in c programming?

616


What is structure of c program?

609


Explain how do you view the path?

659






In C programming, how do you insert quote characters (‘ and “) into the output screen?

898


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

735


pierrot's divisor program using c or c++ code

1734


Why we use break in c?

554


What is indirection in c?

631


Is main a keyword in c?

635


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

712


Explain a pre-processor and its advantages.

635


How many bytes are occupied by near, far and huge pointers (dos)?

678


Explain what is the benefit of using const for declaring constants?

618