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

/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }

4 Answers  


Write a Program that Inputs 10 Numbers in an Array and Show the Maximum Number

2 Answers   Ace Info,


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(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }

1 Answers   TCS,


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates.

19 Answers   Amazon, BITS, Microsoft, Syncfusion, Synergy, Vector,






How can you relate the function with the structure? Explain with an appropriate example.

0 Answers  


#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }

1 Answers  


Write a program to receive an integer and find its octal equivalent?

7 Answers  


There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.

1 Answers   TCS,


how to return a multiple value from a function?

5 Answers   Wipro,


How to return multiple values from a function?

7 Answers  


#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

1 Answers  


Categories