Programming in C
Subject and UNIT: Programming in C: Unit III (a): Functions
Before using a function, the compiler must know about the number of parameters and the type of parameters that the function expects to receive and the data type of the value that it will return to the calling function.
Programming in C
Subject and UNIT: Programming in C: Unit III (a): Functions
In the second chapter we have discussed that when we execute a C program, the operating system calls the main() function of the program which marks the entry point for the execution.
with Example C Programs
Subject and UNIT: Programming in C: Unit III (a): Functions
C enables programmers to break up a program into segments commonly known as functions, each of which can be written more or less independently of the others.
with Example C Programs
Subject and UNIT: Programming in C: Unit II (b): Strings
Till now we have seen that a string is an array of characters. For example, if we say char name[] "Mohan", then name is a string (character array) that has five characters.
Syntax with Example C Programs
Subject and UNIT: Programming in C: Unit II (b): Strings
In this section, we will discuss some character and string manipulation functions that are part of ctype.h, string.h, and stdlib.h.
Syntax with Example C Programs
Subject and UNIT: Programming in C: Unit II (b): Strings
In this section, we will learn about different operations that can be performed on character arrays. But before we start with these operations, we must understand the way arithmetic operators can be applied to characters.
Programming in C
Subject and UNIT: Programming in C: Unit II (b): Strings
Fixed-length string When storing a string in a fixed- length format, you need to specify an appropriate size for the string variable. If the size is too small, then you will not be able to store all the elements in the string.
Syntax with Example C Programs | Strings
Subject and UNIT: Programming in C: Unit II (b): Strings
The scanf() function can be used to read a field without assigning it to any variable. This is done by preceeding that field's format code with a *.
Syntax with Example C Programs
Subject and UNIT: Programming in C: Unit II (b): Strings
Nowadays, computers are widely used for word processing applications such as creating, inserting, updating, and modifying textual data. Besides this we need to search for a particular pattern within a text, delete it, or replace it with another pattern.
Programming in C
Subject and UNIT: Programming in C: Unit II (a): Arrays
Arrays are widely used to implement mathematical vectors, matrices, and other kinds of rectangular tables.Many databases include one-dimensional arrays whose elements are records.
with Example C Programs
Subject and UNIT: Programming in C: Unit II (a): Arrays
Sparse matrix is a matrix that has large number of elements with a zero value. In order to efficiently utilize the memory, specialized algorithms and data structures that take advantage of the sparse structure of the matrix should be used.
with Example C Programs
Subject and UNIT: Programming in C: Unit II (a): Arrays
A multidimensional array in simple terms is an array of arrays. Like we have one index in a one-dimensional array, two indices in a two-dimensional array, in the same way we have n indices in an n-dimensional array or multidimensional array.