what are the things we can do  in c not in java and viceversa?
951759
no one seems to have answered the actual question so far, which was not about what's the difference between c and java.\n\nThings you can do in c, but not in java are mostly those, that include direct interaction with hardware drivers or with the operating system kernel - write a disk sector, send a raw packet over the network, turn a pixel on the monitor on or off, fork a copy of a process, send a signal to another process or communicate with it via shared memory etc.\n\n\nEverything you can do in java on the other hand can be done in c as well (the java machine itself is written in c after all). Even more precisely, everything you can do with a computer can be done in C. But some things (mostly, having to do with graphics) are easier accomplished in java, that they are in C, unless you have a nice C library - like qt or something - that does the "dirty work" for you.
393592
What you would need is a disassembler for the specific processor that the software runs on. Even then, the disassembled executable will be difficult to follow, as many compilers create very bizarre executable code for perfectly sensible source code. It's only worth doing for small programs and only if it's the only way to get the assembly language source. There is no way to get back to the original C / C++ source, no matter what anybody may write.\n\nIf this request is for a large program (>2000 bytes) that runs on a PC, then forget it. It's only worth doing for embedded software, which is typically fairly small.
670568
Try Planet Source Code:\n\nhttp://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=3270&lngWId=3\n\nThis one's in C++. You should be able to convert it back to C...
162888
if u need any programs in C language..then please send me the questions..I will mail u the solution code..
736284
change the memory module to huge while compile ur code. try simple codes like\n\nint main()\n{\nint *p;\np = (int *) malloc (sizeof(int));\nscanf("%d", &p);\nprintf("%d",*p);\n}\n\nu can find differ, i think...
778795
The C programming language is considered to be a low to middle level language; in other words, while you can program using the usual kind of stuff: functions, types, and so-on, C also makes it easier to program using assembly language (also called 'bit twiddling').  OS developers often use C because of this.  They can program many facets of an OS much faster with C, but they can still get close to the metal to program the more delicate sequences.\n\nAssembly language and the aspects of C allowing the same function are use for things like disk formatting, code optimization, drivers, and things like that.  Other more high leveled languages make this more difficult.  An example is the C++ programming language, which while being object oriented and based directly on C, makes it more difficult to program close to the metal.
848075
I know of at least two, that I would recommend, apart from what others have said.  I am told the C++ compiler will work with C programs.\n\nBorland Free C++ Compiler\nhttp://www.borland.com/downloads/downloa...\nArticle on Borland Free C++ Compiler\nhttp://community.borland.com/article/0,1410,20633,00.html\n\nBorland Turbo C++ (IDE)\nhttp://www.turboexplorer.com/cpp...
979933
I'm giving u the program (in C), just go through it, then write the algo. It'll be easier.\n\n// Program :  MERGE  SORT\n\n#include<stdio.h>\n#include<conio.h>\n\nvoid mergesort(int *,int);\n\nvoid main()\n{\nint x[30],n,i;\nclrscr();\nprintf("Enter total no. of elements");\nscanf("%d",&n);\nprintf("Enter %d nos.",n);\nfor(i=0;i<n;i++)\n   scanf("%d",&x[i]);\n\nmergesort(x,n);\n\nprintf("After sorting in descending order :&#92;n");\nfor(i=n-1;i>=0;i--)\n  printf(" %d",x[i]);\n\ngetch();\n}\n\n\n\nvoid mergesort(int x[],int n)\n{\n  int aux[30],l1,l2,u1,u2,i,j,k,size;\n  size=1;   // merges file of size 1\n  while(size<n)\n  {\n    l1=0;   // initialize lower-bound of 1st. file\n    k=0;    // k is index for auxilliary array\n    while(l1+size<n)\n    {\n      // initialize remaining parameters...\n      l2=l1+size;\n      u1=l2-1;\n      u2=(l2+size-1)<n ? (l2+size-1):(n-1);\n      for(i=l1,j=l2;i<=u1 && j<=u2;k++)\n if(x[i]<=x[j])\n   aux[k]=x[i++];\n else\n   aux[k]=x[j++];\n      while(i<=u1)\n      aux[k++]=x[i++];\n      while(j<=u2)\n      aux[k++]=x[j++];\n\n      l1=u2+1;\n    } /* end of 2nd. while-loop */\n    for(i=l1;k<n;i++)\n       aux[k++]=x[i];\n    for(i=0;i<n;i++)\n       x[i]=aux[i];\n\n    size*=2;\n  } /* end of 1st. while-loop */\n}
687652
look at C++ book so many ... ^_^
994315
That's silly.   Any code for VB that is converted to C would require lots of redesign.  Certainly, you would not make the new C code to use the VB objects.   You would design it to use it's own libraries and such.  \n\nGood luck
963718
They could all potentially be valid C statements, depending on what functions and variables have already been defined.\n\nRawlyn.
1110691
Here is something I came up with quickly ( not fully complete, I will leave that to you ! ) \n\nThis quick bit of code will give you a start ( hopefully and no recursion ).\n\nPlease note that this is not complete and you will get a memory leak in swap function ( easily fixed btw ! ).\n\n#include "stdafx.h"\n#include "stdio.h"\n#include "string.h"\n\nvoid manipulate( char* pString, int index );\nchar* swap( char* pString, int pos );\n\nchar pod[255];\n\n\nint main(int argc, char* argv[])\n{\n\n  char* p = "abc";\n  memcpy( pod, p, strlen( p ) );\n  for( int i = 0; i < strlen( p ); i ++ )\n  {\n    manipulate( pod, strlen( p ) );\n  }\n  return 0;\n}\n\n\nvoid manipulate( char* pString, int index )\n{\n  int i = 1;\n  char* p;\n  p = pString;   \n  while( index > 1 ) \n  {\n    p = swap( p, i );\n    index--;\n    i++;\n    memcpy( pod, p, strlen( pString ) );\n    printf( "%s&#92;n", p );\n  }\n}\n\nchar* swap( char* pString, int pos )\n{\n  char* p = new char[ strlen(pString) + 1 ];\n  memset( p, '&#92;0', strlen( pString ) + 1);\n  memcpy( p, pString, strlen( pString ) + 1 );\n  char temp = p[pos];\n  p[pos] = pString[pos-1];\n  p[pos-1] = temp;\n  return p;\n}
799772
Well you should be asking how to create the C language? If you have worked in the C language, it is not just the IDE you see. There are libraries and other files you have to take care of - most importantly the compiler.\n\nAs you know the compiler should be able to do two things. First, verify the code and syntax. This includes checking if all variables have been declared and stuff, and finally give out proper error messages. Secondly, it should convert all the source code to assembly language.\n\nThe IDE is just one part. It somehow combines all these operations into one task. You can design your own IDE; make it the way you want, but it requires knowledge about how to communicate with the components and capture their outputs, and finally present them?\n\nI've told you everything except designing the compiler. If you want to design the compiler you should know the assembly language. The exact info that goes into building the compiler is a mystery to me though. I am not a computer engineer myself, but nevertheless computers interest me. What I would suggest is try out the wikipedia link related to the C language; and then post questions in forums and try to obtain the expected services required by a compiler. This should give you some idea. But I don't know where to start you off on that one.\n\nOnce you find the requirements designing the compiler won't be a problem for you. But I must warn you about licences. In spite of C being an old language, I don't know if anyone tried coming out with their own versions. I mean to say is I don't know if anyone tried to design the exact same thing. It could violate some licences. So be careful.
563755
you can use the Intel 8-bit assembly language, or C. You can probably find a free compiler for the assembly easily (if not, I think I still have it). For C, the compiler I recommend is Keil (www.keil.com). After that you need to load the software into the micro, or external RAM. Some support serial download through the serial port, but if not, you need a "burner" to load it.
399079
you can try textpad..it is free and it is multipurpose..i.e\n\nyou can use it to write ur c,c++c#,java,HTML,javascript also.
393030
See the reference below.  The documentation has some examples. \nFailing that MySQL has a C API which you could use from C++.
1161264
The above answerer is slightly wrong.  C++ holds a subset of C, it is not the complete C language.\n\nApart from that, You should be able to get a program that executes in C, not in C++.\n\n/* hello.c -- The most famous program of them all ..\n */\n\n#include <stdio.h>\n\nint main(void) {\n  printf("Hello World!&#92;n");\n}\n\nGot from http://www.cis.temple.edu/~ingargio/cis71/code/hello.c