C Interview Questions
Questions Answers Views Company eMail

What's a "sequence point"?

3 4995

Why doesn't the code "int a = 1000, b = 1000; long int c = a * b;" work?

7 6330

What's wrong with "char *p; *p = malloc(10);"?

5 8904




I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.

1 2309

I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?

3 3308

What does a run-time "null pointer assignment" error mean?

2 5630

what is meant by the "equivalence of pointers and arrays" in C?

Satyam,

3 5785

What is the real difference between arrays and pointers?

Hexaware, TCS, Logic Pro,

27 45863




How do I declare a pointer to an array?

6 8345

How can I set an array's size at run time?

9 7677

When you call malloc() to allocate memory for a local pointer, do you have to explicitly free() it?

Aloha Technology,

2 5081

How does free() know how many bytes to free?

8 12970

What's the difference between calloc() and malloc()?

4 4825

What is alloca() and why is its use discouraged?

1 4501

What are .h files and what should I put in them?

3 3093


Post New C Questions






Un-Answered Questions { C }

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

951


Sir i need notes for structure,functions,pointers in c language can you help me please

1210


Which is the memory area not included in C program? give the reason

748


about c language

770


Write a progarm to find the length of string using switch case?

803






c program for searching a student details among 10 student details

912


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

647


char *p="name"; printf(p);

618


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

736


Write a program to maintain student’s record. Record should not be available to any unauthorized user. There are three (3) categories of users. Each user has its own type. It depends upon user’s type that which kind of operations user can perform. Their types and options are mentioned below: 1. Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record) 2. Super Admin (Search Record [by Reg. No or Name], View All Records, Insert New Record, Modify Existing Record, Delete Single Record) 3. Guest (Search Record [by Reg. No or Name], View All Records) When first time program runs, it asks to create accounts. Each user type has only 1 account (which means that there can be maximum 3 accounts). In account creation, following options are required: Login Name: <6-10 alphabets long, should be unique> Password: <6-10 alphabets long, should not display characters when user type> Confirm Password: Account Type: Login Name, Password and Account Type should be stored in a separate file in encrypted form. (Encryption means that actual information should be changed and Decryption means that Encrypted information is changed back to the actual information) If any of the above mentioned requirement(s) does not meet then point out mistake and ask user to specify information again. When Program is launched with already created accounts, it will ask for user name and password to authenticate. On successful authentication, give options according to the user’s type.

616


what type of questions arrive in interview over c programming?

819


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

1007


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

1215


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

1034


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

1515