C

Interview Questions on Structures in C

September 10, 2009 C

A set of interview questions on structures in C. What is a structure? What are the differences between structures and unions? What are the advantages of using unions? How can you use typedef to define a type of structure? Write a C program that returns 3 numbers from a function using a structure. In below [...]

1 comment Read the full article →

Interview Questions on Functions in C

September 10, 2009 C

A set of questions on functions in C, covered in Interview Mantra. What is the purpose of main() function? Explain command line arguments of main function? What are header files? Are functions declared or defined in header files ? What are the differences between formal arguments and actual arguments of a function? What is pass [...]

0 comments Read the full article →

Interview Questions on Operators and Constants in C

September 5, 2009 C

How to swap two numbers using bitwise operators? Which bitwise operator is suitable for checking whether a particular bit is ON or OFF? Which bitwise operator is suitable for turning OFF a particular bit in a number? Which one is equivalent to multiplying an unsigned int by 2: left shifting by 1 or right shifting [...]

0 comments Read the full article →

Interview Questions on Variables and Storage classes in C

September 5, 2009 C

What is the difference between declaring a variable and defining a variable? What is a static variable? What is a register variable? Where is an auto variables stored? What is scope & storage allocation of global and extern variables? What is scope & storage allocation of static, local and register variables? What are storage memory, [...]

0 comments Read the full article →

Interview Questions on Pointers in C

September 5, 2009 C

What is a pointer in C? What are the advantages of using pointers? How is pass by reference achieved using pointers in C? What are the differences between malloc() and calloc()? How to use realloc() to dynamically increase size of an already allocated array? What is the equivalent pointer expression for referring an element a[i][j][k][l], [...]

2 comments Read the full article →

Answers to Twitter Quiz -2 on C language

September 4, 2009 C

This quiz is a past event on Twitter. Twitter Quiz is unique format of quiz conducted by Interview Mantra. It is a short quiz of 10 questions. This quiz was on C Language. Read more about Interview Mantra Twitter Quiz> The Quiz questions, answers and their explanations have been consolidated as a blog post for [...]

0 comments Read the full article →

Answers to Twitter Quiz -1 on C language

August 26, 2009 C

This quiz is a past event on Twitter. Twitter Quiz is an innovative brain child of Interview Mantra. It is a short quiz of 10 questions. This quiz was on C Language. Read more about Interview Mantra Twitter Quiz> The Quiz questions, answers and their explanations have been consolidated as a blog post for your [...]

2 comments Read the full article →

C, SQL, UNIX interview for experienced developer @ AMDOCS

August 25, 2009 C

These questions were asked in a job posting at Amdocs. The job was for developers experienced in C language, SQL and UNIX. This interview lasted for 30 minutes. Answers to these questions would be posted soon. If you wish to answer any of these questions, please comment below, the Section Name, Question Number along with [...]

11 comments Read the full article →

First Interview Experience of a Fresh Graduate

July 20, 2009 C

This is a recorded Interview conducted for a Job posting of Junior Software Engineer at a Multi National Company. The company’s core business is Information Technology outsourcing. The job requires competency in latest Computer technologies. The Company is also ready to train if they find enthusiastic and budding engineers. The interviewee, being a graduate of [...]

3 comments Read the full article →

Answers to Twitter Live quiz-3 on C

July 9, 2009 C

This is a recorded twitter quiz. @ajlopez, won this quiz. More Details about this quiz Question1: In C statement, int _new_var; The variable name is not valid and it results in a compilation error. a)True or b)False? Answer: b)False In C language, variable names can start with _(underscore) or a letter but not a number. [...]

1 comment Read the full article →