When to user -> (arrow) operator.
If the structure/union variable is a pointer variable, to access structure/union elements the arrow operator is used.
How many operators are there under the category of ternary operators?
There is only one operator and is a conditional operator (? : ).
Which keyword is used to perform unconditional branching?
goto
What are bit fields?
We can create integer structure members of differing sizes apart from non-standard sizes using bit fields. Such structure size is automatically adjusted with the multiple integer size of the machine.
Mention File operations in C Language.
Basic File Handling Techniques in C, provide the basic functionalities that users can perform against files in the system.
Function | Operation |
---|---|
fopen() | To Open a File |
fclose() | To Close a File |
fgets() | To Read a File |
fprint() | To Write into a File |
Describe the file opening mode “w+”.
Opens a file both for reading and writing. If a file is not existing it creates one, else if the file is existing it will be over written.
Is FILE a built-in data type?
No, it is a structure defined in stdio.h
Which built-in function can be used to move the file pointer internally?
fseek()
Name a function which can be used to close the file stream.
fclose().
What are different storage class specifiers in C?
auto, register, static, extern