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 |
Write a program to print a square of size 5 by using the character S.
¦void main() ¦{ ¦int i=10,j; ¦ j=i+++i+++i; ¦printf("%d",j); ¦getch(); ¦} ¦ output:-30 but in same question if we write as- ¦void main() ¦{ ¦int i=10; ¦ int j=i+++i+++i; ¦printf("%d",j); ¦getch(); ¦} ¦ output:-33 why output is changed from 30 to 33. Can any body answer...
WAP to display 1,2,3,4,5........N
write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??
int DIM(int array[]) { return sizeof(array)/sizeof(int ); } main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr)); }
What is the main difference between STRUCTURE and UNION?
#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
#include<stdio.h> main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); }
main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
write a origram swaoing valu without 3rd variable
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
main() { int i=-1; -i; printf("i = %d, -i = %d \n",i,-i); }