c - Restricted pointer assignments -


I have a question about restricted pointers assignments. See the comments in the code for specific questions. Overall, I'm just wondering what is prohibited (I've read the standard, but still have questions: - (

  int * q = malloc (sizeof (int) * 100); {Int * Restricted R = Q; (int j = 0; j and lt; rand ()% 50; J ++) {r [j] = rand ();} cue = r; // standard restricted child hint Is illegal for parents. // If Q was a restricted indicator, is it right to believe that it would be wrong? // Since the alleged unrestricted, is it a legal act? I think I'm just thinking: // What is the proper way to move R's value outside the blocks? // code can continue, where the loop is left over?} {Int * S = Q; // Unrestricted hair pointers, continue with where these works for RT (ATJ = 0; J & L; 50; J ++) ST and T above the alias * A + T = Q + 1; + S [j] = t [ja];}}  

thanks for you since the object has been modified (in the first row Tith Array), therefore, with help!

R In a block where except R has been declared, I think the code is well defined in your example.

If Q was a restricted indicator, then the example would be undefined.


Comments