Question from the Language C - Fundamentals test

Write a C program that prints the number of bottles of soda you need to bring to a party.

Medium

What does the following code return ?

#include <stdio.h>

int main() 
{
          int cocacola = 60;
          char sprite  = 3;
          int bottles = cocacola + sprite;
          printf("We have to bring %d bottles", bottles); 
          return 0;
}
Author: KahinaStatus: Published(Update)Question passed 307 times
Edit
0
Community Evaluations
developer avatar
Lancelot
20/12/2023
Well technically you have to include <stdio.h> otherwise there is a compilation error