C Interview Questions
Questions Answers Views Company eMail

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

1 4110

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

CNC, Gokul,

4 8144

what is call by value and call by reference

4 6271

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

4 6436

what is difference between overriding and overloading?

1 3928

what is calloc and malloc?

2 8081

What are local and global variables?

3 3850

What is the scope of static variables?

1 4248

What is the difference between static and global variables?

1 3150

What are volatile variables?

Mind Tree,

1 4208

what is the use of ‘auto’ keyword?

1 3426

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

1395

what is a function prototype?

1 3079

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

Emerson,

1 4484

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

TCS,

1466


Post New C Questions

Un-Answered Questions { C }

What is #define used for in c?

590


Why isn't any of this standardized in c? Any real program has to do some of these things.

598


What is the difference between NULL and NUL?

697


What is a lookup table in c?

599


Difference between MAC vs. IP Addressing

613






What is gets() function?

644


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.

1612


How does sizeof know array size?

589


What is c method?

510


Can you explain the four storage classes in C?

621


What is difference between union All statement and Union?

606


How can I read a binary data file properly?

613


Can you please compare array with pointer?

593


When can a far pointer be used?

563


What is the difference between typedef and #define?

518