बिजनेस मार्केटिंग का लो कॉस्ट फंडा , अपने मोबाइल से ऑटो sms भेजकर मार्केटिंग करे विजिट करे http://autotextsms.com/ बिजनेस मार्केटिंग का लो कॉस्ट फंडा http://autotextsms.com/

Search This Blog

Translate

Showing posts with label C Program to increment the array by one and print incremented array. Show all posts
Showing posts with label C Program to increment the array by one and print incremented array. Show all posts

C Program to increment the array by one and print incremented


C Program to increment the array by one and print incremented array

 #include <stdio.h>
 void incrementArray(int[]);
int main()
 { int i; int array[4] = {10, 20, 30, 40}; incrementArray(array); for (i = 0; i < 4; i++) printf("%d\t", array[i]); return 0; } void incrementArray(int arr[]) { int i; for (i = 0; i < 4; i++) arr[i]++; }


OUTPUT:-
-------------------------------
11 21 31 41
--------------------------------

C Program to increment the array by one and print incremented array

C Program to increment the array by one and print incremented array 


#include <stdio.h>
 void incrementArray(int[]);
int main()
 { int i; int array[4] = {10, 20, 30, 40}; incrementArray(array); for (i = 0; i < 4; i++) printf("%d\t", array[i]); return 0; } void incrementArray(int arr[]) { int i; for (i = 0; i < 4; i++) arr[i]++; }


OUTPUT:- -------------------------------
11 21 31 41

--------------------------------


C Program example List