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
Answer / pragathi
void main()
{
if(printf("campus force training"))
{
}
}
Is This Answer Correct ? | 44 Yes | 1 No |
Answer / pragathi
main()
{
if(printf("campus force training"))
break;
}
Is This Answer Correct ? | 12 Yes | 12 No |
Answer / bhavin
void main()
{
if(printf(" Campus force training")
{}
getch();
}
Is This Answer Correct ? | 2 Yes | 5 No |
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
What is the problem with the following code segment? while ((fgets(receiving array,50,file_ptr)) != EOF) ;
Write a program to receive an integer and find it's octal equivalent. How can i do with using while loop.
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); }
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.
main() { static int var = 5; printf("%d ",var--); if(var) main(); }
abcdedcba abc cba ab ba a a
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.
source code for delete data in array for c
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
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"
Implement a t9 mobile dictionary. (Give code with explanation )
1 Answers Amazon, Peak6, Yahoo,