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() { main(); }

1 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  


void main() { int c; c=printf("Hello world"); printf("\n%d",c); }

2 Answers  


main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }

4 Answers   CSC,


How do I write a program to print proper subset of given string . Eg :input: abc output:{},{a},{b},{c},{a,b},{a,c},{b,c}, {a,b,c}.I desperately need this program please mail me to saravana6m@gmail.com

11 Answers   Deshaw, Infosys,






main() { int a[10]; printf("%d",*a+1-*a+3); }

1 Answers  


x=2 y=3 z=2 x++ + y++; printf("%d%d" x,y);

2 Answers  


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

1 Answers  


#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }

2 Answers   CNSI,


void func1(int (*a)[10]) { printf("Ok it works"); } void func2(int a[][10]) { printf("Will this work?"); } main() { int a[10][10]; func1(a); func2(a); } a. Ok it works b. Will this work? c. Ok it worksWill this work? d. None of the above

1 Answers   HCL,


main() { register int a=2; printf("Address of a = %d",&a); printf("Value of a = %d",a); }

3 Answers  


can u give me the c codings for converting a string into the hexa decimal form......

1 Answers  


Categories