Single Choice Not Set

QWhat is the output of this C code?

#include<stdio.h>
int main()
{
	int i = 5;
	int l = i / -4;
	int k = i % -4;
	printf("%d %d\n", l, k);
	return 0;
}

ID: #1157 Operators and Enums in C Language 2,074 views
Question Info
#1157Q ID
Not SetDifficulty
Operators and Enums in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Compile time error
  • B Run time error
  • C -1 1
  • D 1 -1
Correct Answer

Explanation

Option C

Share This Question

Challenge a friend or share with your study group.