Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;

1 Answers  


main() { int c=- -2; printf("c=%d",c); }

1 Answers   TCS,


How can you relate the function with the structure? Explain with an appropriate example.

0 Answers  


how to return a multiple value from a function?

2 Answers   Wipro,


1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18.

8 Answers   IBPS, Infosys, TCS,


What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }

1 Answers  


main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); }

6 Answers  


main( ) { char *q; int j; for (j=0; j<3; j++) scanf(“%s” ,(q+j)); for (j=0; j<3; j++) printf(“%c” ,*(q+j)); for (j=0; j<3; j++) printf(“%s” ,(q+j)); }

1 Answers  


Sir... please give some important coding questions asked by product companies..

0 Answers  


Is the following code legal? struct a { int x; struct a b; }

1 Answers  


#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }

1 Answers  


#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }

1 Answers  


Categories