🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by ravi Tue, 14 Jun 1983 23:51
C compiler bug
#121
Author: ravi
Date: Tue, 14 Jun 1983 23:51
39 lines
872 bytes


   A very simple program 


	#include <stdio.h>
	
	main ()
	{

          char *c[],*d[];

	  *c = "i am a string";
	  *d = "so what";

	  printf("%s\n",*c);
	  printf("%s\n",*d);

	}


   on 4.1bsd  produced

        
	so what
	so what


   whereas the C compiler on the TOPS-20 and other variations of the above
   program on 4.1 bsd produced the correct result.

   I am curious to find out WHY?.



   ravi
   Fairchild Research,
   Palo Alto,CA.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads