[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] C (was: QA uploads primer)



On Wednesday 17 June 2009, Boyd Stephen Smith Jr. wrote:
> In <[🔎] 200906171857.57749.v13@v13.gr>, Stefanos Harhalakis wrote:
> >Same thing for the trigraphs.
>
> puts("What??!"); /* ;) */

I meant that they are not very popular and that they are not covered in most 
books or tutorials. Thus, it is not obvious that this:

#include<stdio.h>
int main() { printf("??!??/n"); }

may not output what the user expects (depending on the compiler)

or why this:

#include <stdio.h>
int main() { printf("%c\n", "123"<:2:>); }

will properly compile and output "3"

??!??>


Reply to: