SHARE
TWEET

Untitled

a guest Jul 17th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top