Write a C program to print ‘Campus Force training’ without
using even a single semicolon in the program.

Answers were Sorted based on User's Feedback



Write a C program to print ‘Campus Force training’ without using even a single semicolon in the..

Answer / pragathi

void main()
{
if(printf("campus force training"))
{
}
}

Is This Answer Correct ?    44 Yes 1 No

Write a C program to print ‘Campus Force training’ without using even a single semicolon in the..

Answer / pragathi

main()
{
if(printf("campus force training"))
break;
}

Is This Answer Correct ?    12 Yes 12 No

Write a C program to print ‘Campus Force training’ without using even a single semicolon in the..

Answer / bhavin

void main()
{
if(printf(" Campus force training")
{}
getch();
}

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More C Code Interview Questions

WAP to display 1,2,3,4,5........N

2 Answers  


main() { static int a[3][3]={1,2,3,4,5,6,7,8,9}; int i,j; static *p[]={a,a+1,a+2}; for(i=0;i<3;i++) { for(j=0;j<3;j++) printf("%d\t%d\t%d\t%d\n",*(*(p+i)+j), *(*(j+p)+i),*(*(i+p)+j),*(*(p+j)+i)); } }

1 Answers  


main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }

1 Answers  


can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

0 Answers   TCS,


struct point { int x; int y; }; struct point origin,*pp; main() { pp=&origin; printf("origin is(%d%d)\n",(*pp).x,(*pp).y); printf("origin is (%d%d)\n",pp->x,pp->y); }

1 Answers  


#include<stdio.h> main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s; printf("%d",s->x); printf("%s",s->name); }

3 Answers   Hexaware,


void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }

3 Answers  


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

0 Answers  


how can i cast a char type array to an int type array

2 Answers  


#define assert(cond) if(!(cond)) \ (fprintf(stderr, "assertion failed: %s, file %s, line %d \n",#cond,\ __FILE__,__LINE__), abort()) void main() { int i = 10; if(i==0) assert(i < 100); else printf("This statement becomes else for if in assert macro"); }

1 Answers  


main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

2 Answers  


Finding a number multiplication of 8 with out using arithmetic operator

8 Answers   Eyeball, NetApp,


Categories