Knowee
Questions
Features
Study Tools

What will be the output of the following program? #include<stdio.h> int main() { int i=10; if (i > 10) else printf ( "Hello Cocaine!" ); return 0; }

Question

What will be the output of the following program? #include<stdio.h> int main() { int i=10; if (i > 10) else printf ( "Hello Cocaine!" ); return 0; }
🧐 Not the exact question you are looking for?Go ask a question

Solution 1

The code you provided is not correct. It has a syntax error. The if statement is not complete. It should have a condition and a block of code to execute when the condition is true. The corrected code should look like this:

#include<stdio.h>

int main()

{
int i=10;
if (i > 10){
    // some c
    Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI  

This problem has been solved

Similar Questions

What will be the output of the following program in Python?print( 2 >3 and 4< 2)

What will the output of the following program be?L1 = ['Vikas', 'Akshay', 'Sanskar', 'Mahima']print(L1[1][-1])

What will be the output of the following program in Python?Name = “Rahul”print(Name[::-1])

What will be the output of the following program?Note: This question helps in clearing the AMCAT exam

What will be the output of the following program?while i < 20: print(i) i += 1

1/4

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.