Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
1
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c x 18
Member Avatar for Adnan S.

I spent 4 hours trying to find out how I can add the digits of a number. Could you give me an idea?

Member Avatar for sneekula
0
943
Member Avatar for doublex

hi there, i try to map a file in memory, in linux, using mmap, so that what i write in memory will be written in the file as well. the piece of code looks like this [code=c] fd = open(argv[1], O_RDWR); if (fd == -1) { error_message(__FILE__, __LINE__, "'open' failed …

Member Avatar for doublex
0
118
Member Avatar for sathishkumar.e

Hi, I'm a newbie to this group. I heard a question in C to swap the two strings using command line arguments but without using the temp. string,pointer or array Can anyone help me how to do this.

Member Avatar for Duoas
0
133
Member Avatar for boyz

can any one write a c program in which both the if and else statements should execute???

Member Avatar for WaltP
0
115
Member Avatar for asilter

i have 2 executable files. From one of them i'm calling the other one. it is also executed correctly, but does not return 0. why? backup.c file : [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <unistd.h> #include <mysql/mysql.h> int main(int argc, char * argv[]) { if(!execl("/home/user1/exec_work/binary","/home/user1/exec_work/binary","serdar","ilter",NULL)) { …

Member Avatar for Duoas
0
114
Member Avatar for mank

I want to parse a tree the tree is like (((1,2)3,4)5,6) see the attached parse tree the program would produce an array from root to each leaf [URL=http://allyoucanupload.webshots.com/v/2002642992068581724][IMG]http://aycu25.webshots.com/image/35944/2002642992068581724_th.jpg[/IMG][/URL] So I would like to have 4 arrays [CODE] a[]={5,3,1} b[]={5,3,2} c[]={5,4} d[]={6} [/CODE] I would like to have a general format …

Member Avatar for Narue
0
101
Member Avatar for boyz

the address of the array is contained in the array name that is a pointer to the array it means when we are declaring an integer array a[5] we are getting 10 bytes for the array elements and two bytes for the pointer a? means 12 bytes are occupied in …

Member Avatar for Ancient Dragon
0
170
Member Avatar for boyz

1.main() 2.{ 3. int a=0; 4. while(...) 5. { 6. int a=9; 7. } 8.} now friendz question is question is what make a of 3 global and a of line 6 local what is happend at the time of local decla.. and at the time of global decl... would …

Member Avatar for Salem
0
95
Member Avatar for boyz
Member Avatar for boyz

This is different question...can anyone tell...we shld get some text as output hope u can get the question........... dont use any aruments or anything in or on main() we shld juzz keep main() function main() { } dont use C++ or any other..use only C... and this has solution.....frnds help …

Member Avatar for doublex
0
88
Member Avatar for boyz

i just want to know if subscript is greater than the size of array then either this value is stored outside of the memory located to array or sometimes do not saved and poduces error can you tell how and by whom this is decided what action to be taken

Member Avatar for biswajit.bhuyan
0
62