Yahoo India Web Search

  1. Ad

    related to: c interview questions
  2. Choose From a Wide Selection Of Computing, Internet & Digital Media Books For You. Amazon Offers an Array Of Unique Products From Hundreds Of Brands.

Search results

  1. Jun 15, 2024 · Learn the frequently and most asked C programming interview questions and answers for freshers and experienced candidates. Topics include features, data types, tokens, scope, preprocessor directives, static variables, memory allocation, pointers, and more.

    • What's the value of the expression 5["abxdef"]? The answer is 'f'. Explanation: The string mentioned "abxdef" is an array, and the expression is equal to "abxdef"[5].
    • What is a built-in function in C? The most commonly used built-in functions in C are sacnf(), printf(), strcpy, strlwr, strcmp, strlen, strcat, and many more.
    • In C, What is the #line used for? In C #line is used as a preprocessor to re-set the line number in the code, which takes a parameter as line number, herewith is an example for the same.
    • How can a string be converted to a number? The function takes the string as an input that needs to be converted to an integer. int atoi(const char *string)
    • What Is C Language?
    • Why Is C Known as A Mother Language?
    • Why Is C called A Mid-Level Programming Language?
    • What Are The Features of The C Language?
    • What Is The Use of printf() and scanf() functions?
    • What Is The Use of A Static Variable in C?
    • What Is The Use of The Function in C?
    • What Is The Difference Between Call by Value and Call by Reference in C?
    • What Is Recursion in C?
    • What Is An Array in C?
    • GeneratedCaptionsTabForHeroSec

    C is a mid-level and procedural programming language. The Procedural programming language is also known as the structured programming language is a technique in which large programs are broken down into smaller modules, and each module uses structured code. This technique minimizes error and misinterpretation. More details.

    C is known as a mother language because most of the compilers and JVMs are written in C language. Most of the languages which are developed after C language has borrowed heavily from it like C++, Python, Rust, javascript, etc. It introduces new core concepts like arrays, functions, file handling which are used in these languages. More details.

    C is called a mid-level programming language because it binds the low level and high -level programming language. We can use C language as a System programming to develop the operating system as well as an Application programming to generate menu driven customer driven billing system. More details.

    The main features of C language are given below: 1. Simple:C is a simple language because it follows the structured approach, i.e., a program is broken into parts 2. Portable:C is highly portable means that once the program is written can be run on any machine with little or no modifications. 3. Mid Level:C is a mid-level programming language as it...

    printf():The printf() function is used to print the integer, character, float and string values on to the screen. Following are the format specifier: 1. %d: It is a format specifier used to print an integer value. 2. %s: It is a format specifier used to print a string. 3. %c: It is a format specifier used to display a character value. 4. %f: It is ...

    Following are the uses of a static variable: 1. A variable which is declared as static is known as a static variable. The static variable retains its value between multiple function calls. 2. Static variables are used because the scope of the static variable is available in the entire program. So, we can access a static variable anywhere in the pro...

    Uses of C function are: 1. C functions are used to avoid the rewriting the same code again and again in our program. 2. C functions can be called any number of times from any place of our program. 3. When a program is divided into functions, then any part of our program can easily be tracked. 4. C functions provide the reusability concept, i.e., it...

    Following are the differences between a call by value and call by reference are: Example of call by value: Output: Example of call by reference: Output: More details.

    When a function calls itself, and this process is known as recursion. The function that calls itself is known as a recursive function. Recursive function comes in two phases: 1. Winding phase 2. Unwinding phase Winding phase: When the recursive function calls itself, and this phase ends when the condition is reached. Unwinding phase: Unwinding phas...

    An Array is a group of similar types of elements. It has a contiguous memory location. It makes the code optimized, easy to traverse and easy to sort. The size and type of arrays cannot be changed after its declaration. Arrays are of two types: 1. One-dimensional array: One-dimensional array is an array that stores the elements one after the anothe...

    Learn 50 top frequently asked C programming interview questions and answers, covering topics such as C language features, functions, variables, pointers, recursion, and more. Test your C skills and prepare for your next C interview with this comprehensive guide.

    • Find the largest number among the three numbers. C. #include int main() { int a = 1, b = 2, c = 3; if (a > b && a > c) printf("%d", a); else if (b > a && b > c)
    • Write a Program to check whether a number is prime or not. C. #include int main() { int N = 91; int flag = 0; for (int i = 2; i <= N / 2; i++) {
    • Write a C program to calculate Compound Interest. C. #include #include int main() { double principal = 2300; double rate = 7; double time = 4;
    • Write a Program in C to Swap the values of two variables without using any extra variable. C. #include int main() { int x = 10; int y = 20; printf("x: %d , y: %d\n", x, y);
    • How do you construct an increment statement or decrement statement in C? There are actually two ways you can do this. One is to use the increment operator ++ and decrement operator –.
    • What is the difference between Call by Value and Call by Reference? When using Call by Value, you are sending the value of a variable as parameter to a function, whereas Call by Reference sends the address of the variable.
    • Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging? Placing comment symbols /* */ around a code, also referred to as “commenting out”, is a way of isolating some codes that you think maybe causing errors in the program, without deleting the code.
    • What is the equivalent code of the following statement in WHILE LOOP format? for (a=1; a<=100; a++) printf ("%d\n", a * a); Answer: a=1; while (a<=100) { printf ("%d\n", a * a); a++; }
  2. Dec 22, 2023 · Prepare for C interviews with this comprehensive list of frequently asked, interesting and common questions on C basics, operators, functions, arrays, pointers, data structures and more. See source codes, explanations and examples for each question.

  3. People also ask

  4. Aug 24, 2022 · These C Interview questions and answers cover many of those programming concepts and are a good way to prepare yourself for an interview that requires a good understanding of C. Top C Interview Questions and Answers. C Basic Interview Questions. 1. What are some of the most important features of C? Some of the most important features of C are:

  1. People also search for