brel-logo-white brel-logo-white
  • Travel
  • Case Study
  • How to
  • Technology
  • More
    • Sports
    • Health
    • Articles
    • Review
Notification
  • HomeHome
  • Finance
  • Health
  • Lifestyle
  • Sports
  • Contact Us
BreldigitalBreldigital
  • HomeHome
  • Finance
  • Health
  • Lifestyle
  • Sports
  • Contact Us
Search
  • Quick Access
    • Home
    • History
    • My Saves
    • My Interests
    • My Feed
  • Categories
    • Travel
    • Sports
    • Health

Top Stories

Explore the latest updated news!

What idea is emphasized through repetition

The a value of a function in the form f(x) = ax2 + bx + c is negative. which statement must be true?

What experimental evidence led to the development of this atomic model from the one before it?

Stay Connected

Find us on socials
248.1k Followers Like
61.1k Followers Follow
165k Subscribers Subscribe
Breldigital > Blog > ds > What will be the output of following c code
ds

What will be the output of following c code

By Megha Chandrashekar Published November 5, 2022
Share

What will be output of following c code?

Additional Details

#include <stdio.h>
int main()

{
int x=123;
int i={
printf(“c” “++”)
};
for(x=0;x<=i;x++){
printf(“%x “,x);
}
return 0;

}

What will be the output of following c code

Answer:

Output: c++0 1 2 3

Explanation:

First printf function will print: c++ and return 3 to variable i.For loop will execute three time and printf function will print 0, 1, 2 respectively.

Filed Under: Programming

TAGGED: What will be the output of following c code
Megha Chandrashekar November 5, 2022 November 5, 2022
By Megha Chandrashekar
Follow:
Megha Chandrashekar is a former Special Education Assistant who now spends her days running after her toddlers, all the while pursuing a freelance writing career

Search

brel-logo-white brel-logo-white
Explore a wide range of brands and categories with our comprehensive coverage, and stay up-to-date with the latest news and trends by subscribing to our updates.
Categories:
  • Entertainment
  • Travel
  • Sport
  • Contact Us

Quick Links

  • My Feed
  • My Interests
  • History
  • My Saves

About US

  • Adverts
  • Our Jobs
  • Term of Use

© 2023 Brel Digital All Rights Reserved. All logos and images used on this website are registered trademarks of their respective companies

Welcome Back!

Sign in to your account

Lost your password?