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 |
WAP to display 1,2,3,4,5........N
main() { static int a[3][3]={1,2,3,4,5,6,7,8,9}; int i,j; static *p[]={a,a+1,a+2}; for(i=0;i<3;i++) { for(j=0;j<3;j++) printf("%d\t%d\t%d\t%d\n",*(*(p+i)+j), *(*(j+p)+i),*(*(i+p)+j),*(*(p+j)+i)); } }
main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }
can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail
struct point { int x; int y; }; struct point origin,*pp; main() { pp=&origin; printf("origin is(%d%d)\n",(*pp).x,(*pp).y); printf("origin is (%d%d)\n",pp->x,pp->y); }
#include<stdio.h> main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s; printf("%d",s->x); printf("%s",s->name); }
void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']
how can i cast a char type array to an int type array
#define assert(cond) if(!(cond)) \ (fprintf(stderr, "assertion failed: %s, file %s, line %d \n",#cond,\ __FILE__,__LINE__), abort()) void main() { int i = 10; if(i==0) assert(i < 100); else printf("This statement becomes else for if in assert macro"); }
main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
Finding a number multiplication of 8 with out using arithmetic operator