How can I ensure that integer arithmetic doesnt overflow?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

Write an algorithm for a program that receives an integer as input and outputs the product of of its digits. E.g. 1234 = 24, 705 = 0

4 Answers  


Example of friendly function in c++

2 Answers  


Why is sprintf unsafe?

0 Answers  


Why c language?

0 Answers  


What is the difference between text and binary modes?

0 Answers  






Explain c preprocessor?

0 Answers  


What is a structure and why it is used?

0 Answers   Hexaware,


Give the rules for variable declaration?

0 Answers  


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

0 Answers  


What is the difference between struct and union in C?

1 Answers  


#include<stdio.h> int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

0 Answers  


write a program to display the numbers in the following format 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3 4

9 Answers   IBM, NIIT, Winit,


Categories