Passing arrays to functions in c

Passing arrays to functions in c If you want to pass a single-dimension array as an argument in a function, you would have to declare function formal parameter in one of following three ways and all three declaration methods produce similar results because each tells...

arrays in c

arrays in c C programming language provides a data structure called the array, which can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a...

Multi-dimensional arrays in c

Multi-dimensional arrays in c C programming language allows multidimensional arrays. Here is the general form of a multidimensional array declaration: type name[size1][size2]…[sizeN]; For example, the following declaration creates a three dimensional 5 . 10 . 4...

Projection of solids

Projection of solids SAMPLE PROBLEM 1 :A square pyramid, 40 mm base sides and axis 60 mm long, has a triangular face on the ground and the vertical plane containing the axis makes an angle of 450 with the VP. Draw its projections. Take apex nearer to VP. Steps for...

Managing Input and Output operations in c

Managing Input and Output operations in c –  IO is not part of C syntax –  Several functions becomes standard for IO are called Standard IO Library in C –  The printf and scanf are library functions –  The stdio.h file and its inclusion in the...

compilation and linking process in c

compilation and linking process in c Include file Header file Your source code can use some functions and variables for which the source code is not in the file. For instance it might use printf to write to the screen. The way this is handled is to have a file or...