what is meant by preprocessor in "c language"?
550075
It is  a program that preprocess the source code before it is passed to the compiler.There r different kind of preprocessor command or directive like macro expansion, file inclusion,conditional compilation etc...
193480
http://www.latrobe.edu.au/philosophy/phimvt/sympas/s15opprec.html\n\nhttp://en.wikipedia.org/wiki/Operator-precedence_parser\n\nhttp://compilers.iecc.com/comparch/article/98-03-108
518171
some languages support compilation which means that the source code that you write will be translated into machine code and this will then be called a program and executed\nother languages support interpretation where the every line of the source code file is interpreted at runtime and executed one at a time. In this case, no program is generated.\n\nA program that takes a source file and generates the compiled machine code is called a compiler\n\nA program that interprets the source file at run time is called an interpreter\n\nRead more about these at:\nhttp://en.wikipedia.org/wiki/Compiler\nhttp://en.wikipedia.org/wiki/Interpreter_%28computer_software%29
681415
please have a look on this.. \n\n\nhttp://www.cprogramming.com/tutorial/template_specialization.html
409704
I may not have written many programs in Java, but that sure as hell doesn't look like Java to me.\n\nEdit: It's actually C as you can see from the includes:\n#include<stdio.h>\n#include<conio.h>\n#include<math.h>\n#include<stdlib.h>\n\nC++ doesn't use <something.h> it just uses plain <something>.
764699
Briefly, it is about the same kind of difference as between chinese and korean...\nBoth use letters, and are understood by computers. But the syntax, lexic and vocabularies are different.\nHelps?\n\nBTW, one being "oops", and the other one not is really bull... Create a struct in "C", shove some pointers to functions into it, and enjoy your very own "object".\nNow, create another struct, with the previous one as the first field - and you have just discovered inheritance. Cast a pointer to the second one into a pointer to the first - and that is your polymorphism.\n\nAnother myth is that C++ is a "superset of C" or that you can compile a C program with a C++ compiler, or that C is "C++ without classes". This is not true. They look somewhat similar to a human eye, but formally are totally different laguages.\nYou could, probably, come up with some fairly simple C program, that can be compiled with C++, just like some Spanish words (and even sentenses) are also valid in French, but in general that is not true.\nFunction pointers are not compatible with void*, or with each other. Integers are not compatible with pointers, and are not assumed by default, you can't skip a type declaration etc, etc.\n\nAnd finally, no, "C" is not faster than "C++" on any sane system.
1041508
First u should select which editor u r going to use it may be a Notepad or BC Editor or TC Editor or Command Prompt Editor and what editor u have just open that and type the c code.\nbefore going to write u should include the header files which are u going to use in u r program.\n\nthe header file inclution is very important in C language.\n\nafter that u should type the main() function with the return type almost void.\nthen open the function with the opening braces like { and for closing the function }.\n\nafter that u should declare what type of variables u r goining to use in u r program it may be int, float, or char and so on.\n\nafter that do what type of functions u like to do.\n\nSample Program\n=============\n\n#include<stdio.h>\n#include<conio.h>\nvoid main()\n{\nint a=10,b=20,c;\nfloat x=10.9,y=20.1,z;\nclrscr();\n\nc=a+b;\nz=x+y;\n\nprint("%d&#92;n",c);\nprint("%d&#92;n",z);\ngetch()\n}\n\nsave this file with the extension of C. for example save the above file with sample.c in an any editor and run it in the BC or TC which will be available.\n\nClick Alt+F9 Key for compling the program.\n\nClick Ctrl+F9 Key for showing the output on the screen.
345978
/* Here's the entire code [including the main() function]. I have written a generic reverse function which can be used anywhere. */\n\n#include <stdio.h>\n\nvoid reverse ( char str[] )\n{\n        char *ptr = str;\n        int arrLength = strlen( str );\n        int i;\n        char temp[arrLength];\n\n        for ( i = (arrLength-1); i >= 0; i-- )\n        {\n                temp[i] = *ptr++;\n        }\n\n        ptr = str;\n\n        for( i = 0; i < arrLength; i++ )\n        {\n                *ptr++ = temp[i];\n        }\n\n\n}\n\nint main()\n{\n        char str[] = "This will be reversed";\n        reverse( str );\n        printf( "%s", str);\n\n}
235388
C was originally developed as a cross platform language just prior to the innovation of object oriented programming. C used libraries of machine code for basic operations (procedures). If you had the source code and the proper library modules you could compile that code to run on virtually any machine. C was the precursor to object oriented programming and the object oriented windows operating system. C was rewritten as a purely object oriented language called C+ then C++ then C#. Before dos there was cp/m, unix and apple. Programs written for one operating system could not be compiled by another. C is responsible for the evolution of modern computers.
159447
The C programming language is a standardized programming language developed in the early 1970s by Ken Thompson and Dennis Ritchie for use on the UNIX operating system. It has since spread to many other operating systems, and is one of the most widely used programming languages. C is prized for its efficiency, and is the most popular programming language for writing system software, though it is also used for writing applications. ...
608853
Code written in C and it works in C++\n\n#include <stdio.h>\n#include <conio.h>\n\nvoid main() {\n     float f[5];\n     int   i[5];\n     int j;\n     clrscr();\n     printf("Please, enter five float numbers: &#92;n");\n     for (j=0;j<5;j++){\n scanf("%f",&f[j]);\n i[j]=(int) f[j];\n     }\n     printf("Float value&#92;n");\n     for (j=0;j<4;j++)\n printf("%2.2f&#92;n",f[j]);\n     printf("&#92;nInteger value&#92;n");\n     for (j=0;j<4;j++)\n printf("%d&#92;n",i[j]);\n\n     getch();\n}
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.
1028984
C does not have a boolean data type as in the case of Visual Basic or any other SDK.\nSo, you can't declare a variable like:\n\nbool flag; (wrong)\n\nBut, instead you can do this alternative, using preprocessor directive(#)\n\n#define TRUE 1\n#define FALSE 0\n\nint main()\n{\n    ...\n    ...\n   return 0;\n}\n\nYou can now use the keyword 'TRUE' and 'FALSE' like this:\nif(x = TRUE)\n{\n  ...\n  ...\n}\nelse\n{\n  ...\n  ...\n}\n\nTRUE and FALSE technically are called Symbolic Constants
966120
try this stuff... pls understand the logic...\n\n#include<stdio.h>\n\nint main()\n{\nint no,rem;\nscanf("%d",&no);\nwhile (no)\n{\nrem = no % 10;\nprintf("%d",rem);\nno = no / 10;\n}\n}
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.
464684
You'll need to learn how to program. But yourself a C compiler and a ton of books on C programming.
386448
In traditional Dos based systems it is a simple matter of including relevant assembly code in C language. May not be so easy if you are in applicaton mode on other operating systems. Not very difficult, need to know assembly language if you want to directly manipulate, other you can use operating system routines to access it (if your program resides within the kernel).