mardi 4 août 2015

Is there any limit to the number of expressions|parameters in a 'while loop' [duplicate]

This question already has an answer here:

Traditional programming with while-loop is done with a single parameter ex:

  • while(1) (or) while(a==b) (or) while(a&&b) (or) while(!a) etc
  • The code below takes two parameters in the while loop

    ssize_t r_read(int fd, void *buf, size_t size) 
    {
        ssize_t retval;
        while (retval = read(fd, buf, size), retval == -1 && errno == EINTR);
        return retval;
    }
    
    
    1. Is there any limit to the parameters inside the while loop?
    2. Is there any possible explanation for this or does this methodology have a name?


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire