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

main() { char *p; p="Hello"; printf("%c\n",*&*p); }

1 Answers  


What is the problem with the following code segment? while ((fgets(receiving array,50,file_ptr)) != EOF) ;

1 Answers  


Write a program to receive an integer and find it's octal equivalent. How can i do with using while loop.

2 Answers  


struct aaa{ struct aaa *prev; int i; struct aaa *next; }; main() { struct aaa abc,def,ghi,jkl; int x=100; abc.i=0;abc.prev=&jkl; abc.next=&def; def.i=1;def.prev=&abc;def.next=&ghi; ghi.i=2;ghi.prev=&def; ghi.next=&jkl; jkl.i=3;jkl.prev=&ghi;jkl.next=&abc; x=abc.next->next->prev->next->i; printf("%d",x); }

1 Answers  


There is a lucky draw held every day. if there is a winning number eg 1876,then all possible numbers like 1867,1687,1768 etc are the numbers that match irrespective of the position of the digit. Thus all these numbers qualify fr the lucky draw prize Assume there is no zero digit in any numbers. write a program to show all the possible winning numbers if a "winning number"is passed as an arguments to the function.

1 Answers   Nagarro,






main() { static int var = 5; printf("%d ",var--); if(var) main(); }

1 Answers  


abcdedcba abc cba ab ba a a

2 Answers  


which function is used to clear the buffer stream on gcc? for example: I wrote following code on gcc #include<stdio.h> int main(void) { char ch; int a,b; printf("\nenter two numbers:\t"); scanf("%d%d",&a,&b); printf("enter number is %d and %d",a,b); printf("\nentercharacter:\t"); scanf("%c",&ch); printf("enter character is %c",ch); return 0; } in above progarm ch could not be scan. why?plz tell me solution.

2 Answers  


source code for delete data in array for c

1 Answers   TCS,


int i; main(){ int t; for ( t=4;scanf("%d",&i)-t;printf("%d\n",i)) printf("%d--",t--); } // If the inputs are 0,1,2,3 find the o/p

2 Answers  


respected sir, i did my MCA in 2013 when i am going to attend to an interview i was asked about my project how will i explain my project could please help me in this and my project title is "Social Networking Site For Social Responsibility"

1 Answers   Genpact, Ozdocs,


Implement a t9 mobile dictionary. (Give code with explanation )

1 Answers   Amazon, Peak6, Yahoo,


Categories