Get Latest Exam Updates, Free Study materials and Tips
Ans- C is a high–level language and general-purpose structured programming language.
Ans- Compile is a software program that transfer program developed in a high-level language into executable object code.
Ans- The approach or method that is used to solve the problem is called an algorithm.
Ans- The smallest individual units are known as C tokens. C has six types of tokens Keywords, Constants, Identifiers, Strings, Operators and Special symbols.
Ans- There are 32 Keywords in the C language.
Ans- Identifiers are user-defined names given to variables, functions and arrays.
Ans- Back Slash character constant are \t, \n, \0.
Ans- Variables are user-defined names given to memory locations and are used to store values. A variable may have different values at different times during program execution.
Ans- Primary or Fundamental Data types (int, float, char), Derived Datatypes(arrays, pointers) and User-Defined data types(structures, unions, enum)
Ans- The syntax for declaring variable isdata type variable_name-1, variable_name-2,….variable_name-n;
Ans- While declaring a variable assigning value is known as initialization. Variable can be initialized by using assignment operator (=).
Ans- C consist Arithmetic Operators (+, -, *, /,%), Relational Operators (<, <=, >, >=, !=), Logical Operators (&&, ||, !), Assignment Operators (=, +=, -=, *=, /=), Increment and Decrement Operators (++, –), Conditional Operator(?:), Bitwise Operators(<<, >>, ~, &, |, ^) and Special Operators (. , ->, &, *, size of)
Ans- An operator which takes only one operand is called a unary operator. C unary operators are Unary plus (+), Unary minus (-), Increment and Decrement operators (++,–), Address of operator (&), Value at operator (*), sizeof operator, ones complement operator (~)
Ans- The modulus operator produces the remainder of an integer division. It cannot be used on floating-point data
Ans-Values of variables and results of expressions can be displayed on the screen using printf functions. Values to variables can be accepted through the keyboard using scanf function
Ans- Simple IF statement, IF-ELSE statement, NESTED IF-ELSE statement and ELSE IF ladder
Ans- Simple IF statement, IF-ELSE statement, NESTED IF-ELSE statement and ELSE IF ladder
Ans- GOTO is an unconditional branching statement which transfers control to the specified label.
Ans- Loop is a sequence of statements that runs repeatedly.
Ans- While do-while and for.
Ans- Initialization section, conditional section and increment/decrement section.
Ans- The break statement is used to exit from the loop.
Ans-The array is a collective name given to similar elements.
Ans- The initializer for an array is a comma-separated list of constant expressions enclosed in braces
( { } ). The initializer is preceded by an equal sign ( = ). You do not need to initialize all elements in an array.
Ans- A variable can store only one value at a time whereas an array variable can store several value at a time.
Ans- A one-Dimensional array, Two-Dimensional array and Multi-Dimensional array
Ans- An array which can store several characters is called character array
Ans- The function is a self-contained block of the statement which is used to perform a certain task
Ans- C functions are divided into two categories user-defined function and built-in functions
Ans- Printf, scanf, clrscr, gotoxy, string handling functions and file handling functions
Ans- A function calling itself is called function recursion
Ans- Arrays are passed to a function by sending its address
Ans- A pointer variable is a variable that can store the address of another variable
Ans- By using the address of the operator we can store the address of a variable in a pointer
Ans- A pointer variable irrespective of its type it occupies two bytes in memory
Ans- Auto, static, extern and register
Ans- The structure is user-defined data typed. The structure is a collective name given to dissimilar elements
Ans- Structure members can be accessed using the dot operator
Ans- Structures store dissimilar values whereas arrays stores similar values. One structure variable can be assigned to another structure variable whereas one array variable cannot be assigned to another array variable
Ans- Sum of all the members size is becomes structure size
Ans- Union is a user-defined data type that can store a value of different data types
Ans-We can create text and binary files using C
Ans- fopen, fclose, fgetc, fputc, fgets, fputs, fprintf, fscanf, fread, fwrite, fseek
Ans- r, w, a, r+, w+, a+, rb, wb, rb+, wb+
Ans- We can use structure members using arrow operator with its pointer
Ans- A variable can store only one value at a time whereas an array variable can store several value at a time.
Ans- The syntax for declaring the variable is
Datatype variable_name-1,variable_name-2…variable_name-n
Prepare For Your Placements: https://lastmomenttuitions.com/courses/placement-preparation/
/ Youtube Channel: https://www.youtube.com/channel/UCGFNZxMqKLsqWERX_N2f08Q
Follow For Latest Updates, Study Tips & More Content!
Not a member yet? Register now
Are you a member? Login now