Skip to main content

what is Functions ?

In c' we can divide a large program into the basic building blocks known as function .The function is the collection of one or more statement that enclosed in {}.A function can be called multiple time to provide reusability and modularity to the C program In other words ' we can say that the collection of functions creates a program .The function  is also known as procedure or subroutine in the programming languages    

Comments

Popular posts from this blog

IMPORTANCE OF MANAGEMENT

 1. Management is an activity 2. Management is a purposeful activity. 3. Management is concerned with the efforts of a group. 4. Management applies economic principles. 5. Management involves decision making. 6. Management is getting things done through others. 7. Management is an integrating process. 8. Management co-ordinates all activities and resources. (i) Management is a universal activity. (ii) Management is dynamic not rigid.

In c, Array objective question with option

1. What is an array in C? a) A collection of similar data items stored in contiguous memory locations. b) A collection of different data items stored in non-contiguous memory locations. c) A collection of similar data items stored in non-contiguous memory locations. d) A collection of different data items stored in contiguous memory locations. Answer: a) A collection of similar data items stored in contiguous memory locations. 2.What is the syntax to declare an array in C? a) dataType arrayName[arraySize]; b) dataType arraySize[arrayName]; c) arrayName[arraySize] dataType; d) arraySize[arrayName] dataType; Answer: a) dataType arrayName[arraySize]; 3.How do you access the first element of an array in C? a) arrayName[0]; b) arrayName[1]; c) arrayName[-1]; d) arrayName[first]; Answer: a) arrayName[0]; 4.What is the index of the last element of an array in C? a) arraySize; b) arraySize - 1; c) arraySize + 1; d) arraySize * 2; Answer: b) arraySize - 1; 5.Can you change the size of an array ...

Define a program.

Answer. A computer acts on the basis of information and program fed into it.The Computer does not have a mind of own.''A specification of a sequence of computation steps ( or instructions) telling the computer 'What to do ', in a particular programming language is referred to as program,''