What is the purpose of type declarations? Or use of typedef? |
The type declaration allow to create a name synonym for the existing data types that can help to simplify the complex declaration. Syntax |
Post/View Answer
Post comment
Cancel
Thanks for your comment.!
Write a comment(Click here) ...
|
What is C language? |
C is a high-level programming language and first developed in 1972 by Dennis Ritchie and Ken Thompson at AT& T Bell Labs. |
Why C is sometimes called a mid-level programming language? |
C supports both low-level (machine) and high level programing that is why it is also known as a mid-level programming language. |
What are the advantages and disadvantages of C language? |
Advantage and disadvantage of C are Disadvantages |
What is a variable? |
A variable is a name representation of memory storage location and that value can change between program execution. |
What is the difference between variable declaration and variable definition? |
Declaration associates type to the variable whereas definition is value assignment of the variable. |
What is a constant? |
When variables are declared with the const keywordcalled constant. The value ofconstant never changed. |
|
What is the difference between local variable and global variable in C? |
Local variable: A variable which is declared inside function or block is known as local variable. |
What is Storage Class in C and types of it? |
The storage class represent scope and storage type in memory of variable in C. |
What is auto keyword in C? |
The auto keyword indicate that the memory location of a variable is temporary. Whereas by default every local variable of the function and block is automatic (auto). |
|
What is the use of static variable in C? |
A variable declared with static keyword, is known as static variable. The static variable retains its value between multiple function calls and has permanent scope. |
What are register variables? What are the advantages of using register variables? |
A variable is declared with a register storage class, known as register variable. The register variable is stored in the CPU register instead of main memory. Storing of frequently used variable in register might be speed up the code as variable access is faster from register in compare from memory. |
How do you know the size of a data type or variable? |
The sizeof operator can measure the data type size. |
What is type casting? |
Converting one data type into another is known as type casting. |
What is a function and advantages of it? |
A function is a block of set of instruction that perform specific task. |
When is the void keyword used in a function? |
When declare functions with void then it will not require return a value. |
What is Recursive Functions? |
The function can be called by another function and can call itself from a statement inside the body of the function itself. When function called itself then is said to be recursive. |