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 |
How we print the table of 3 using for loop in c programing?
#include <stdio.h> int main(void) { int a=4, b=2; a=b<<a+b>>2 ; printf("%d",a); return 0; }
main() { int x=5; clrscr(); for(;x<= 0;x--) { printf("x=%d ", x--); } } a. 5, 3, 1 b. 5, 2, 1, c. 5, 3, 1, -1, 3 d. –3, -1, 1, 3, 5
How do you create a really large matrix (i.e. 3500x3500) in C without having the program crash? I can only reach up to 2500. It must have something to do with lack of memory. Please help!
write the function. if all the character in string B appear in string A, return true, otherwise return false.
void main() { int i=i++,j=j++,k=k++; printf(“%d%d%d”,i,j,k); }
Write a program that produces these three columns sequence nos. using loop statement Sequence nos. Squared Squared + 5 1 1 6 2 4 9 3 9 14 4 16 21 5 25 30
main() { int k=1; printf("%d==1 is ""%s",k,k==1?"TRUE":"FALSE"); }
write a program for area of circumference of shapes
main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcpy(a,b)); } a. “Hello” b. “Hello World” c. “HelloWorld” d. None of the above
4 Answers Corporate Society, HCL,
Program to find the largest sum of contiguous integers in the array. O(n)
Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];