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 |
How to palindrom string in c language?
Develop a routine to reflect an object about an arbitrarily selected plane
prog. to produce 1 2 3 4 5 6 7 8 9 10
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)); } }
#define prod(a,b) a*b main() { int x=3,y=4; printf("%d",prod(x+2,y-1)); }
Write out a function that prints out all the permutations of a string. For example, abc would give you abc, acb, bac, bca, cab, cba. You can assume that all the characters will be unique.
5 Answers IITR, Microsoft, Nike,
why nlogn is the lower limit of any sort algorithm?
How do you sort a Linked List (singly connected) in O(n) please mail to pawan.10k@gmail.com if u can find an anser...i m desperate to knw...
6 Answers Microsoft, MSD, Oracle,
main() { int i=1; while (i<=5) { printf("%d",i); if (i>2) goto here; i++; } } fun() { here: printf("PP"); }
main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }
main() { char * strA; char * strB = I am OK; memcpy( strA, strB, 6); } a. Runtime error. b. I am OK c. Compile error d. I am O
create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"