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

Write a C program to print look and say sequence? For example if u get the input as 1 then the sequence is 11 21 1211 111221 312211 12112221 .......(it counts the no. of 1s,2s etc which is in successive order) and this sequence is used in run-length encoding.

1 Answers  


Question: We would like to design and implement a programming solution to the reader-writer problem using semaphores in C language under UNIX. We assume that we have three readers and two writers processes that would run concurrently. A writer is to update (write) into one memory location (let’s say a variable of type integer named temp initialized to 0). In the other hand, a reader is to read the content of temp and display its content on the screen in a formatted output. One writer can access the shared data exclusively without the presence of other writer or any reader, whereas, a reader may access the shared memory for reading with the presence of other readers (but not writers).

1 Answers  


1 o 1 1 0 1 0 1 0 1 1 0 1 0 1 how to design this function format in c-language ?

2 Answers  


How do I write a program to print proper subset of given string . Eg :input: abc output:{},{a},{b},{c},{a,b},{a,c},{b,c}, {a,b,c}.I desperately need this program please mail me to saravana6m@gmail.com

11 Answers   Deshaw, Infosys,


main ( ) { static char *s[ ] = {“black”, “white”, “yellow”, “violet”}; char **ptr[ ] = {s+3, s+2, s+1, s}, ***p; p = ptr; **++p; printf(“%s”,*--*++p + 3); }

1 Answers  






pls anyone can help me to write a code to print the values in words for any value.Example:1034 to print as "one thousand and thirty four only"

2 Answers  


Write a prog to accept a given string in any order and flash error if any of the character is different. For example : If abc is the input then abc, bca, cba, cab bac are acceptable, but aac or bcd are unacceptable.

5 Answers   Amazon, Microsoft,


Finding a number multiplication of 8 with out using arithmetic operator

8 Answers   Eyeball, NetApp,


Find the largest number in a binary tree

7 Answers   Infosys,


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,


Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];

1 Answers  


Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.

0 Answers  


Categories