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...

#include <stdio.h>
int main()
{
if ("X" <"x")
printf("X smaller than x
");
}


my question is whats the mistake in this program? find it and please tell me..

Answer Posted / sandeep

Friend
In c if we write string constants like "Hi" "Hello world"
etc,it will be just a poiinter unless u prints it.
So if pointer pointing "X" is greater "if will not be executed"
else if pointer pointing "x" is greater "if will be executed"

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the error 'Null Pointer Assignment' mean and what causes this error?

1215


what is recursion in C

1060


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1199


What is the use of sizeof?

1013


What is the difference between scanf and fscanf?

1261


What is the maximum length of an identifier?

1184


Does c have an equivalent to pascals with statement?

995


Does c have enums?

1099


How many levels of pointers have?

1040


what type of questions arrive in interview over c programming?

2026


How to Throw some light on the splay trees?

1062


What happens if header file is included twice?

1143


What is the role of this pointer?

1070


Is sizeof a keyword in c?

965


What is the difference between exit() and _exit() function?

1044