Differences between Java and C: Differences between Java and C Java is an object oriented language. In an effort to build simple and safe language, the java team did not include some of the c features in Java. · Java does not include the C language statement keywords sizeof , and typedef. · Java does not contain the data types struct and union . · Java does not define the type modifiers keywords auto, extern, signed, and unsigned. · Java does not support an explicit pointer type. · Java does not have a pre-processor and therefore we cannot use #define, #include, and #ifdef . · Java requires that the functions with no arguments must be declared with empty parenthesis and not ...
Characteristics & Importance of C: § It is a robust language whose rich set of built-in functions and operators can be used to write any complex program. § The C compiler combines the capabilities of an assembly language with features of high-level language and therefore it is well suited for writing both system software and business packages. § Programs written in C are efficient and fast. This is due to its variety of data types and powerful operators. There are only 32 keywords and its strength lies in its built-in functions. Several standard functions are available which can be used for developing programs. § C is highly portable. This means that C programs written for one computer can be run on another with little or no modification. § C Language is well suited for structured programming, thus requiring the used to think of a problem in terms of function modules or blocks. A proper collection of these modules would make a comp...
C LANGUAGE NOTES: Q. WHAT IS Algorithm explain its features? Ans : A sequential solution of any program that written in human language, called algorithm. “Algorithm" is a formally defined a step by step procedure for performing some calculation. If a procedure is formally defined, then it must be implemented using a programming language . The algorithm gives logic of the program, that is, a step-by-step description of how to arrive at a solution. Algorithm provides a blueprint to write a program to solve a particular problem in finite number of steps. Algorithms are mainly used to achieve software re-use it is a procedure for performing some calculations. it gives the logic of the program i.e. a step by step description of how to arrive at a solution. Algorithm provides a blue print for writing a program to solve a particular problem. a well defined a...
Comments
Post a Comment