print a semicolon using Cprogram without using a semicolon
any where in the C code in ur program!!
Answers were Sorted based on User's Feedback
Answer / anshu ranjan
#include<stdio.h>
void main()
{
if(printf("%c",59)){}
}
\\actually, this is correct
Is This Answer Correct ? | 104 Yes | 3 No |
Answer / vinay_csjm
void main()
{
if(printf("semicolon")){}
if(printf(getch())){}
}
Is This Answer Correct ? | 72 Yes | 35 No |
Answer / ankit popli
Answer#2 has a mistake thats why its not working in TURBO C/C++.....i.e
void main()
{
while(!printf("\nHello World"))
{}
}
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / arun chauhan
#include<stdio.h>
void main()
{
if(printf("semicolon"))
{}
}
when you compile and run the program it will not stop at the console. You can see the result with the help of Alt+F5
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / rakesh
#include<stdio.h>
void main()
{
if(printf("semicolon")){}
if(getch()){}
}
this will print the word 'semicolon'
Is This Answer Correct ? | 3 Yes | 2 No |
main(){ char a[100]; a[0]='a';a[1]]='b';a[2]='c';a[4]='d'; abc(a); } abc(char a[]){ a++; printf("%c",*a); a++; printf("%c",*a); }
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
9 Answers CSC, GoDB Tech, IBM,
Extend the sutherland-hodgman clipping algorithm to clip three-dimensional planes against a regular paralleiepiped
What are segment and offset addresses?
#include<stdio.h> main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s; printf("%d",s->x); printf("%s",s->name); }
Code for 1>"ascii to string" 2>"string to ascii"
1 Answers Aricent, Global Logic,
How can you relate the function with the structure? Explain with an appropriate example.
main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }
To reverse an entire text file into another text file.... get d file names in cmd line
/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }
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() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }