Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <string.h>
- typedef struct record
- {
- char name[50];
- }REC;
- REC *rec_ptr;
- int main()
- {
- REC r;
- char input[50] = "name"; //goal is to access r.name
- char test1[50] = "Successful!";
- r.input = test1; //This returns an error obviously
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement