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



print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!..

Answer / anshu ranjan

#include<stdio.h>
void main()
{
if(printf("%c",59)){}
}
\\actually, this is correct

Is This Answer Correct ?    104 Yes 3 No

print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!..

Answer / vinay_csjm

void main()
{
if(printf("semicolon")){}
if(printf(getch())){}
}

Is This Answer Correct ?    72 Yes 35 No

print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!..

Answer / muthukumar

main()
{
if(printf("%c",59))
{}
}

Is This Answer Correct ?    23 Yes 4 No

print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!..

Answer / shruti

Does anyone know why its working??

("%c", 59)???

because 59 is the ascii value for a semicolon..

hence we are printing a character against a number..

This was juss as little information..
few may get confused.. :-)

Is This Answer Correct ?    11 Yes 2 No

print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!..

Answer / ameya

Hey...thanx anshu....

Is This Answer Correct ?    6 Yes 2 No

print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!..

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

print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!..

Answer / bharadwaj

Anshus code is working,tanx

Is This Answer Correct ?    4 Yes 2 No

print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!..

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

print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!..

Answer / dkp

ultimate

Is This Answer Correct ?    4 Yes 3 No

print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!..

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

Post New Answer

More C Code Interview Questions

# include <stdio.h> int one_d[]={1,2,3}; main() { int *ptr; ptr=one_d; ptr+=3; printf("%d",*ptr); }

1 Answers  


main( ) { int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(ā€œ%u %u %u %d \nā€,a,*a,**a,***a); printf(ā€œ%u %u %u %d \nā€,a+1,*a+1,**a+1,***a+1); }

2 Answers  


write a program in c language to get the value of arroy keys pressed and display the message which arrow key is pressed?

1 Answers  


int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }

3 Answers   Cisco, HCL,


main() { int i=10; void pascal f(int,int,int); f(i++,i++,i++); printf(" %d",i); } void pascal f(integer :i,integer:j,integer :k) { write(i,j,k); }

1 Answers  






Find the largest number in a binary tree

7 Answers   Infosys,


Extend the sutherland-hodgman clipping algorithm to clip three-dimensional planes against a regular paralleiepiped

1 Answers   IBM,


Design an implement of the inputs functions for event mode

0 Answers   Wipro,


what is the code of the output of print the 10 fibonacci number series

2 Answers  


PROG. TO PRODUCE 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1

1 Answers  


What is the output for the following program main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }

1 Answers  


Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])

1 Answers  


Categories