x.name = fname, dont work, why ?
and how can I solve it ?
#include<stdio.h>
struct example
{
char name[10];
int year;
};
Type: Posts; User: oldman
x.name = fname, dont work, why ?
and how can I solve it ?
#include<stdio.h>
struct example
{
char name[10];
int year;
};
Follwing code dont work , why ?
read char and while - not end of line or while - not point, increment *p_for
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char ch[10], *p_for;
ok, thanks everybody.
can you show some example codes , how to create two new variables and copy the contents of array[] into those new variables ?
I would be grateful. (I have just started with C)
oldman
1. If I have an array with 10 elements array[]
2. And want to split array[] to:
3. 2 new arrays:
4. 6 first elements from array[] to array New1[]
5. And new2[] with 4 last elements from array[]
...
I have tried this following code with errors but I must have mistaken something: (you can improve it)
#include <stdio.h>
#include <stdlib.h>
#define MAXLEN 100
#define TRUE 1
int...
I have problem to write code to following example:
print on screen - Enter setence (some text)
read from screen - setence (text)
While - not end of file (or something like that)
how many...