Home Segments Index Top Previous Next

367: Practice

What will happen if you run the following program? Explain your answer.

#include  
struct trade {double price; int number; 
}; 
main ( ) { 
  struct trade *tptr; 
  while (1) 
    tptr = (struct trade*) malloc (sizeof (struct trade)); 
}