C Interview Questions
Questions Answers Views Company eMail

Why doesn't C support function overloading?

2 2117

Why n++ execute faster than n+1 ?

2 2278

What are the advantages of Macro over function?

1 1590

What is the difference between struct and union in C?

1 858

What is call by reference in functions?

1 859

What is pass by reference in functions?

514

What is a memory leak? How to avoid it?

1 850

What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1 900

What is typedef?

1 967

Why is it usually a bad idea to use gets()? Suggest a workaround.

1 1327

What are dangling pointers? How are dangling pointers different from memory leaks?

1 899

What is the difference between ‘g’ and “g” in C?

1 3384

Add Two Numbers Without Using the Addition Operator

546

Subtract Two Number Without Using Subtraction Operator

554

Multiply an Integer Number by 2 Without Using Multiplication Operator

523


Post New C Questions

Un-Answered Questions { C }

In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2869


How do you declare a variable that will hold string values?

901


What is the difference between mpi and openmp?

964


Explain data types & how many data types supported by c?

789


Explain what is the difference between null and nul?

869


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

869


What is malloc return c?

775


Write a code to remove duplicates in a string.

815


Why do we use c for the speed of light?

801


What is data structure in c language?

826


What does 4d mean in c?

1205


What is typedef struct in c?

782


How will you find a duplicate number in a array without negating the nos ?

1825


What is function what are the types of function?

729


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

2096