How to ignore/remove leading zeros?
问题 I am writing a program to add two large numbers in C . My integer array result holds the sum of the two numbers (which were also stored in arrays). For example, if the result array is [0,0,3,2] (actual array size is 20) If 32 is my actual result, how can I display the contents of the result array without the leading zeros ? #include <stdio.h> #include <string.h> #include <stdlib.h> #define BASE 10 void align(int A[],int n); void add(int A[],int B[], int C[]); void Invert(int* a, int n); int