answersLogoWhite

0


Best Answer

#include <limits.h>

if (1) {

printf ("INT_MAX is %d\n", INT_MAX);

printf ("LONG_MAX is %ld\n", LONG_MAX);

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the syntax in getting the highest number in turbo C using the if statement?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Any violation in the syntax of a program statement is called logic error?

No. A violation in the syntax of a program statement is called a syntax error.


What is syntax of a remark statement?

The only language, which has remark-statement, is BASIC. Syntax: REM any text


What are the kinds of conditional statement in foxpro with syntax?

The conditional statement in foxpro is DID YOU GET IT


Syntax of nested if in c?

If(condition) { if-else statement; } else { if-else statement; }


What is a syntax for REM statement?

REM any text


What is the syntax of for loop statement?

syntax: for(initialization;condition;increment) { statements s1; statements s2; } #include&lt;stdio.h&gt; main() { int i,n=5; for(i=0;i&lt;n;i=i+1) { printf("the number s are %d", i); } }


What is for statement in c?

It is one of the statements. Its syntax in BNF is the following: statement ::= for_statement for_statement ::= 'for' '(' opt_expression ';' expression ';' expression ')' statement


What is the syntax of the if statement?

clearly:if () orif () else In each case, can be a null statement, a single statement, or a block of statements surrounded by braces, {}.


What is the function and syntax of printf statement?

it's not a statement, it's a function: len= printf (format, ...more-parameters...);


How do you use if statement syntax in a for loop?

You can use any number of if staments within a for-loop, eg: for (i=0; i&lt;10; ++i) { if (i=1) printf ("%d=1\n",i); }


Can you write plus at end of c statement?

No. That would be a syntax error. Only a right semicolon (;) can go at the end of a statement.


Is an infinite loop an example of a syntax error?

No. A syntax error is a statement that fails to compile. Infinite loops are simply loops for which the number of iterations is unknown. However, all loops, whether counted loops or infinite loops, must have a reachable exit condition. If a loop does not have a reachable exit condition then it is a logic error, not a syntax error.