Isn't it nice when you find the solution by yourself? ( With some ideas from other people, but still it seems that you did understand ;) )
A last tip : I wouldn't print all the pointers. I would...
Type: Posts; User: std10093
Isn't it nice when you find the solution by yourself? ( With some ideas from other people, but still it seems that you did understand ;) )
A last tip : I wouldn't print all the pointers. I would...
argv[0] containts the executable name, argv[1] will contain the first string and so on...
So what I said before in code is this
for(j = 1, i = 0; i < argc-1; i++, j++)
Of course do not...
for(j = 1, i = 0; i < MAXCHARS; i++, j++)
How many strings should you copy inside your array?
- I should copy inside be array as many strings as the user gives in the cmd
How many does he...
Read the comments.
#include <stdio.h>
#include <string.h> /* strcpy */
#include <stdlib.h> /* malloc */
char **get(int n, int m) /* Malloc the 2D array (n x m) */
{