C Interview Questions
Questions Answers Views Company eMail

how we do lcm of two no using c simple if while or for statement

1 3056

Write a program to find the given number is odd or even without using any loops(if,for,do,while)

CNC, Gokul,

4 5605

what is call by value and call by reference

4 4083




How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)

4 4015

what is difference between overriding and overloading?

1 2828

what is calloc and malloc?

2 6057

What are local and global variables?

3 2116

What is the scope of static variables?

1 3167




What is the difference between static and global variables?

1 1912

What are volatile variables?

Mind Tree,

1 2857

what is the use of ‘auto’ keyword?

1 2276

How do we make a global variable accessible across files? Explain the extern keyword?

633

what is a function prototype?

1 1904

what does keyword ‘extern’ mean in a function declaration?

Emerson,

1 3031

how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

TCS,

710


Post New C Questions






Un-Answered Questions { C }

7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

1101


number of times a digit is present in a number

731


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

793


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1029


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

828






how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

399


#include { printf("Hello"); } how compile time affects when we add additional header file .

620


Stimulate calculator using Switch-case-default statement for two numbers

1677


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

770


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1014


develop algorithms to add polynomials (i) in one variable

872


write a program to print data of 5 five students with structures?

805


Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?

1322


Calculate 1*2*3*____*n using recursive function??

710


 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.

963