Can someone help me to put an array of characters into a text file.
For example i have a[] = {a,b,c,d,e};
and i have to put the contents that is a b c d into a text file.
Can someone give me an idea of how the code should be in C programming?
User Profile
Collapse
-
Arrays and Files in C programming
-
What does this FOR loop means?
Can someone tell me what does this FOR loop means in C programming?
for (;a!=0;a=a>>1)
what this for loop does? -
i have idea for only one decimal number
that is input a number then the program gives you its binary equivalent
the code is as follows:
Code:int num,no_bits; printf("Enter number"); scanf("%d",&num); no_bits=count_bits(num); printf("number of bits %d",no_bits); bin_print(num,no_bits); count_bits(int n) //function to count number of
-
Conversion of decimal to binary in C programming n store in arrays
Can someone give me an idea to convert decimal numbers into its binary equivalent and store each binary in arrays in C programming language?? -
ya...i've tried again n again..
i've got it..it now works..
i actually messed with the loops.....Leave a comment:
-
Generate numbers n store it in an array in C programming
I have to generate numbers from 0 to 32. i did it using a for loop and it worked. i used printf to display the numbers. it was good n was displayed correctly.
but i have to store the numbers in an array. that i am unable to do. i did try but while i am displaying the array i am getting garbage.
Can someone suggest a way of how to display the numbers 0 to 32, store them in an array n display them on screen please??? -
-
C problem for rounding a decimal value
i have written a code which yields a decimal value for example 7.23, but i need the value greater than this number i.e the number integer 8.
Can anyone suggest a way to do this please?
what should I use?
No activity results to display
Show More
Leave a comment: