What is a method?
A Method is a programmed procedure. It is defined as part of a class also included in any object of that class. Class can have more than one methods. It can be re-used in multiple objects.Reply
What is the purpose of main( ) function?
Main function is to be called when the program getting started.
1.It is the first started function.
2.Returns integer value.
3.Recursive call is allowed for main() also.
4.it is user-defined function
5.It has two arguments:
5.2) argument vector(strings passed)
6.We can use any user defined name as parameters for main(),behalf of argc and argv.
What is an argument ? differentiate between formal arguments and actual arguments?
Using argument we can pass the data from calling function to the called function.
Arguments available in the funtion definition are called formal arguments. Can be preceded by their own data types.
We use Actual arguments in the function call.
What is a function and built-in function?
function is that when large program is divided into sub programs.where as each one done one or more actions to be performed for a large program. Those subprograms are called functions.they support only static and extern storage classes.
Built-in functions(Library function) that which are predefined and supplied with the compiler called as built-in functions.Reply
What is modular programming?
It is a programming technique that cut the program function into small modules.Each module has one function that have all codes and variables needed to execute them.
Using modular programming we can easily found out the bugs from very large program.Object-oriented programming languages, such as Smalltalk and HyperTalk,incorporate modular programming principles. Reply
When does the compiler not implicitly generate the address of the first element of an array?
When array name appears in an expression such as:
1.array as an operand of the sizeof operator.
2.array as an operand of & operator.
3.array as a string literal initializer for a character array.
Then the compiler not implicitly generate the address of the first element of an array.Reply
What are the characteristics of arrays in C?
some main characteristics of arrays are given below:
1.all entry in array should have same data type.
2.tables can store values of difference datatypes.Reply
What are advantages and disadvantages of external storage class?
Some main advantages and disadvantages of external storage class are given below:
1.In Persistent storage of a variable retains the updated value.
2.The value is globally available.
1. Even we does not need the variable the storage for an external variable exists.
2.Side effect may be produce unexpected output.
3.We can not modify the program easily.
Diffenentiate between an internal static and external static variable?
Some main difference between internal static and external static are given below:
We declare the internal static variable inside a block with static storage class. External static variable is declared outside all the blocks in a file.
In internal static variable has persistent storage,no linkage and block scope, where as in external static variable has permanent storage,internal linkage and file scope.Reply
What is auto variables?
by default variables are auto.as we know that variable changes its character according to the strage class .