Computer Science, asked by devishome386, 6 months ago

What will be the output of the following statements ?int i = 1,j; j=i-- - -2; printf("%d",j);
2 points
error
2
3
-3

Answers

Answered by s1857ritik002869
2

Answer:

THE ANSWER IS

Explanation:

2

Answered by ashutoshmishra3065
0

Answer:

Explanation:

C Programming:

A general-purpose programming language for computers is called C. Dennis Ritchie invented it in the 1970s, and it is still quite popular and influential. The capabilities of the targeted CPUs are clearly reflected in C's features by design. It is widely used in computer architectures ranging from the largest supercomputers to the smallest microcontrollers and embedded systems, and has found long-term success in operating systems, device drivers, protocol stacks, and application software, though less so in recent years.

Dennis Ritchie created C, a replacement for the programming language B, at Bell Labs between 1972 and 1973 in order to create tools that ran on Unix. It was used to re-implement the Unix operating system's kernel. C increasingly gained popularity in the 1980s. Almost all current computer architectures and operating systems have access to C compilers, making it one of the most frequently used programming languages. Since 1989, ANSI (ANSI C) and the International Organization for Standardization have standardized C. (ISO).

With a static type system and support for structured programming, lexical variable scope, and recursion, C is an imperative procedural language. It was intended to be compiled, with minimal runtime assistance, to offer low-level memory access and language constructs that easily map to machine instructions. Although the language has low-level capabilities, it was created to promote cross-platform programming. With only few source code modifications, a standards-compliant C programme built with portability in mind can be compiled for a wide range of computing platforms and operating systems.

Since 2000, the TIOBE index, which gauges the popularity of programming languages, has continuously placed C among the top two languages.

What will be the output of the following statements :

int i = 1,j; j=i-- - -2; printf(''% d'',j);

The output is 2.

#SPJ2

Similar questions