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

Write a program that find and print how many odd numbers in a binary tree

1 Answers  


Which version do you prefer of the following two, 1) printf(“%s”,str); // or the more curt one 2) printf(str);

1 Answers  


int a=1; printf("%d %d %d",a++,a++,a); need o/p in 'c' and what explanation too

1 Answers  


main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; }

2 Answers  


How to swap two variables, without using third variable ?

104 Answers   AB, ADP, BirlaSoft, Cisco, Cygnet Infotech, HCL, Hewitt, Honeywell, HP, IBM, Infosys, Manhattan, Microsoft, Mobius, Percept, Satyam, SofTMware, TCS, Wipro, Yamaha,






Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];

1 Answers  


void main() { int k=ret(sizeof(float)); printf("\n here value is %d",++k); } int ret(int ret) { ret += 2.5; return(ret); }

1 Answers  


what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }

3 Answers   Wipro,


given integer number,write a program that displays the number as follows: First line :all digits second line : all except the first digit . . . . Last line : the last digit

8 Answers  


main() { int c = 5; printf("%d", main||c); } a. 1 b. 5 c. 0 d. none of the above

2 Answers   HCL,


What is wrong with the following code? int *foo() { int *s = malloc(sizeof(int)100); assert(s != NULL); return s; }

1 Answers  


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

0 Answers  


Categories