Arrays in C Language
Arrays and Strings
Functions and Pointers
Interfaces and packages
Differences between void main() and int main()?
Void main() means the main function doesn’t return any value, whereas int main() means functions return an integer value. For int main() return 0 is the standard for successful execution of a program. If you won’t keep anything before main() it will treat as int main().
Difference between a function definition and function declaration
Function declaration means we are telling the compiler about the size, type, and arguments. We are telling function prototype to the compiler. There will be no space allocated in the memory for a function declaration.
Function definition means when we write code inside a function. We will specify the return type. When we define a function memory will be allocated.
Examples for low-level language, middle-level, and high-level language
Low-level language – Machine language, one step upper to this is assembly language. Low-level language doesn’t need any compiler to convert the program
Middle-level language – C language. By using C we can write system programming and also application programming that’s why C is a middle language. C language uses a compiler to convert the program.
High-level language – Basic, Fortran, C++, Java, and Pascal. The high-level language is easy to write for a human. They needed compilers to convert the program.