User Profile
				
					Collapse
				
			
		
	- 
	
	
	
	
 thanks for your concern.. am answered now...
- 
	
	
	
	
 Why is not a=0 in the following code..?Code:#include <stdio.h> int main( ) { float a=1.0; long i; for(i=0; i<100; i++) { a = a - 0.01; } printf("%e\n",a); }Last edited by Meetee; Apr 28 '11, 10:00 AM. Reason: Please add code tags [CODE]...[/CODE] around your code
- 
	
	
	
	
 errors with malloc,arguments,memory leakCode:#define LOOPS 100 #define RAYSIZE 1024 int main (int argc, char **argv) { int count = 0; char *pointer = NULL; for(count=0; count<LOOPS; count++) { pointer = (char *)malloc(sizeof(char) * RAYSIZE); } free(pointer); return count; }
No activity results to display
							Show More
							
Leave a comment: