C Interview Questions
Questions Answers Views Company eMail

Write a program for finding factorial of a number.

Tech Mahindra,

629

Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

InterGraph,

685

Difference between constant pointer and pointer to a constant.

Huawei,

607

An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

Aspire, Infogain,

665

Can include files be nested? How many levels deep can include files be nested?

Aspire, Infogain,

653

What is the difference between a free-standing and a hosted environment?

Aspire,

637

Write a code on reverse string and its complexity.

Expedia,

602

What is a structure and why it is used?

Hexaware,

615

Give differences between - new and malloc() , delete and free() ?

Genpact,

605

Can a function argument have default value?

Genpact,

668

Write a code to determine the total number of stops an elevator would take to serve N number of people.

Expedia,

725

In a byte, what is the maximum decimal number that you can accommodate?

624

Write a program to know whether the input number is an armstrong number.

Wipro,

664

Can an array be an Ivalue?

EXL,

657

State two uses of pointers in C?

Aspire, Infogain,

636


Post New C Questions

Un-Answered Questions { C }

Describe the difference between = and == symbols in c programming?

773


Explain what are preprocessor directives?

623


What is conio h in c?

622


What are the main characteristics of c language describe the structure of ac program?

604


Write a program to generate the Fibinocci Series

656






a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

867


Do pointers store the address of value or the actual value of a variable?

606


What does #pragma once mean?

682


What are the different types of data structures in c?

596


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2021


Is null equal to 0 in sql?

644


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

801


How do you generate random numbers in C?

651


What are header files and explain what are its uses in c programming?

605


What are types of preprocessor in c?

613