String Length Without String Function
String Length Without String Function
1.
2.
3.
4.
Call the function addmatrix() and perform the addition operation d[i][j]=a[i][j]+b[i][j];
5. on two matrices
6. Display the resultant matrix.
if count equal to 0 and number not equal to 1 then the number is prime no and display that
number
dynamic mem for matrix transpose
Read the row and column value from the user.
allocate memory space for row and column using malloc() function.
get the elements for matrix a[i][j]
transpose of matrix a[j][i] change row as columns and colunm as row and display the
elemnts in matrix a.
remove the memory space for matrix a. using free() function
sub string:
read the string from user.
get the substring you want to search.
read the character from given string untill reach the NULL.
compare the substring character one by one with string .
if flag equal to 1 then the substring is present in the string otherwise the sub string is not
present.