Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <string.h>
  4.  
  5. typedef struct record
  6. {
  7. char name[50];
  8. }REC;
  9.  
  10. REC *rec_ptr;
  11.  
  12. int main()
  13. {
  14. REC r;
  15. char input[50] = "name"; //goal is to access r.name
  16. char test1[50] = "Successful!";
  17. r.input = test1; //This returns an error obviously
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement