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 / arunabha
#include<stdio.h>
#include<conio.h>
void main()
{
if(printf("%c",59)){}
if(getch()){}
}
this is the perfect solution...
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rahul
void main()
{
if(printf("%c",59))
{}
if(getch())
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / poorna
#include<stdio.h>
void main()
{
if(printf("\n welcome \n"))
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / neeraj gupta
#include<stdio.h>
void main()
{
printf("%c",59);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / abinash
void main()
{
if(printf("semicolon")){}
}
this works,if u include (stdio.h)
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / gaurav sharma
void main()
{
if(printf("%c",59))
{}
if(getch())
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sam prasanna
we can use the ASCII value of semicolon(;) to print it in if condition.
| Is This Answer Correct ? | 0 Yes | 0 No |
Develop a routine to reflect an object about an arbitrarily selected plane
#include<stdio.h> main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }
main() { int x=5; for(;x!=0;x--) { printf("x=%d\n", x--); } } a. 5, 4, 3, 2,1 b. 4, 3, 2, 1, 0 c. 5, 3, 1 d. none of the above
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']
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
Extend the sutherland-hodgman clipping algorithm to clip three-dimensional planes against a regular paralleiepiped
String copy logic in one line.
how to delete an element in an array
How to return multiple values from a function?
void ( * abc( int, void ( *def) () ) ) ();
#include <stdio.h> main() { char * str = "hello"; char * ptr = str; char least = 127; while (*ptr++) least = (*ptr<least ) ?*ptr :least; printf("%d",least); }
All the combinations of prime numbers whose sum gives 32