Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


Is it possible to print a name without using commas, double quotes,semi-colons?

Answers were Sorted based on User's Feedback



Is it possible to print a name without using commas, double quotes,semi-colons?..

Answer / vinay

void main()
{
char s[30]=
{72,69,76,76,79,33,32,84,72,73,83,32,73,83,32,86,73,78,65,89,32,83,65,76,76,65};
if(printf(s));
getch();
}

Is This Answer Correct ?    7 Yes 2 No

Is it possible to print a name without using commas, double quotes,semi-colons?..

Answer / vinay salla

Explanation for above solution:
The answer is based on the ascii values..
We can take the ascii values of the characters together in
one char array..

Is This Answer Correct ?    3 Yes 2 No

Is it possible to print a name without using commas, double quotes,semi-colons?..

Answer / pavan_mustyala

int main(int argc, char* argv[])
{
if(putchar('n') && putchar('a') && putchar('m') &&
putchar('e'))
{

}
return 0;
}

Is This Answer Correct ?    3 Yes 2 No

Is it possible to print a name without using commas, double quotes,semi-colons?..

Answer / saravanan

#include<stdio.h>
#define fun(x) #x

int main()
{
if(printf(fun(INDIA))){}
}

Is This Answer Correct ?    1 Yes 0 No

Is it possible to print a name without using commas, double quotes,semi-colons?..

Answer / srsabariselvan

void main()
{
if(printf("www.sslogic.blogspot.com"))
{
}
}

Is This Answer Correct ?    2 Yes 5 No

Is it possible to print a name without using commas, double quotes,semi-colons?..

Answer / amit rathi

main ()
{
if (printf (hello))
return 0;
}

//printf returns number of characters printed so if
condition turns true.
same can be done with while,shitch,etc.

Is This Answer Correct ?    14 Yes 23 No

Is it possible to print a name without using commas, double quotes,semi-colons?..

Answer / ayub

yes it is possible the code as follow:


#include<stdio.h>
#include<conio.h>

void main()
{

if(printf(Ayub))

return 0;
getch();
}

Is This Answer Correct ?    5 Yes 15 No

Post New Answer



More C Code Interview Questions

what is brs test reply me email me kashifabbas514@gmail.com

0 Answers  


#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }

1 Answers  


Printf can be implemented by using __________ list.

3 Answers  


main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p...%p...%p",p,q,r); }

1 Answers  


Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };

1 Answers  






Finding a number multiplication of 8 with out using arithmetic operator

8 Answers   Eyeball, NetApp,


void main() { int *i = 0x400; // i points to the address 400 *i = 0; // set the value of memory location pointed by i; }

2 Answers  


void main() { void *v; int integer=2; int *i=&integer; v=i; printf("%d",(int*)*v); }

1 Answers   Honeywell,


main() { extern int i; i=20; printf("%d",i); }

1 Answers   Value Labs,


main() { int i =0;j=0; if(i && j++) printf("%d..%d",i++,j); printf("%d..%d,i,j); }

1 Answers  


All the combinations of prime numbers whose sum gives 32

1 Answers   HHH,


# include<stdio.h> aaa() { printf("hi"); } bbb(){ printf("hello"); } ccc(){ printf("bye"); } main() { int (*ptr[3])(); ptr[0]=aaa; ptr[1]=bbb; ptr[2]=ccc; ptr[2](); }

1 Answers  






Categories