int num_a=0, num_b=0;
return count( str[idx], idx);
Type: Posts; User: pavun_cool
int num_a=0, num_b=0;
return count( str[idx], idx);
#include<stdio.h>
#include<malloc.h>
main()
{
char *ptr[20]; // (char *) array with 4 columns and 20 rows, and I want to export it to stdout.
int i ;
for ( i =0;...
There are some function to know what is error we are getting .
perror , strerror .
perror function : We need to pass some string .
example :
After calling some function
In case of first snippet You just accessing array element by specifying its row and column value.
int a[2][2]={1,2,3,4};
// defined array structure
// a 0 1
// 0 1 2
// 1 3 4