On 9/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> but i think which interviewer would like to ask such questions.
> he must be asking about how good you are in writing a programme

Neither the question, nor the answer, are suitable for finding out how
good a programmer is, it only finds out if the interviewee has looked
up the answer to such questions.

It's another useless question inthe same genre as 'how do you swap two
variables without a temporary' to which the only correct answer (in C
and C++) is 'you don't' - but that's not the answer the interviewers
are normally after.

> :-)
>
>
> On 9/6/07, Paul Herring <[EMAIL PROTECTED]> wrote:
> >
> > On 9/6/07, azarudeen ajees <[EMAIL PROTECTED]<azar_ajees_26%40yahoo.co.in>>
> > wrote:
> >
> > > i want the programming in c without semicolon
> >
> > You cannot write a useful program without using semicolons. However
> > answers to this trick interview question are:
> >
> > int main(){
> > }
> >
> > #include <stdio.h>
> > int main(){
> > if (printf("hello world\n")){}
> > }
> >
> > #include <stdio.h>
> > int main(){
> > while(printf("hello world\n"),0){}
> > }
> >
> > Trick answer:
> >
> > #define NOT_A_SEMICOLON ;
> > #include <stdio.h>
> > int main(){
> > printf("hello world\n")NOT_A_SEMICOLON
> > }

-- 
PJH
"Statistics are like a bikini. What they reveal is suggestive, but
what they conceal is vital"
-- Aaron Levenstein

Reply via email to