C Interview Questions
Questions Answers Views Company eMail

Can we use any name in place of argv and argc as command line arguments?

612

What is logical error?

605

If you know then define #pragma?

678

What is the c language function prototype?

651

What is #line?

615

Can main () be called recursively?

633

Do you know what are the properties of union in c?

588

Tell us bitwise shift operators?

601

What is the purpose of 'register' keyword in c language?

631

What is the difference between malloc() and calloc() function in c language?

608

What is memcpy() function?

624

If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

782

What is a macro in c preprocessor?

634

How to compare array with pointer in c?

625

Tell me when would you use a pointer to a function?

613


Post New C Questions

Un-Answered Questions { C }

Is there anything like an ifdef for typedefs?

708


What is sizeof c?

612


write a programming in c to find the sum of all elements in an array through function.

1710


code for find determinent of amatrix

1521


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

631






general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

590


Explain what is dynamic data structure?

649


4. main() { int c=- -2; printf("c=%d",c); }

1373


What is string constants?

664


What are different types of operators?

600


What are lookup tables in c?

552


find out largest elemant of diagonalmatrix

1651


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.

1517


What is c value paradox explain?

578


c program for searching a student details among 10 student details

1658