No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
13 Posted Topics
I want to get the maximum Column5 from both the table and then the maximum Column3 from the table which has max Column5. I don't know if it is the right forum and also am not good in sql :( SELECT max(Column5_1) FROM (SELECT max(Column5) Column5_1 FROM TABLE1 WHERE Column4 … | |
Hi I am trying to use counted_ptr with a class. Can anyone tell me about the syntax and how to use it. I tried as below but failed. class counted_ptr ; counted_ptr<MyClass>pmyClass= NULL; | |
update mytable set mycolumn = trim(mycolumn) I am using above query where mycolumn is of type char. It trims the leading blank but not trailing. I tried update mytable set mycolumn = TO_CHAR (trim(mycolumn)) But it didn't help either. Can anyone help here? | |
Why Can't we use va_list twice? Can any explain me how it creates memory issue ? | |
What is the behavioral difference between signal(SIGCHLD,SIG_IGN) and signal(SIGCHLD,SIG_DFL)? If we replace signal(SIGCHLD,SIG_IGN) with signal(SIGCHLD,SIG_DFL), What can be the impact? Will it craete a Zombie process? | |
When we pass arg which is of type va_list as a parameter to a different function which calls vsprintf and vfprint giving one of the parameter as args, It gives core dump. But when we make a copy (i.e va_copy) and pass copy to one of vsprintf or vfprintf and … | |
I was using certain lex and yacc file on 32 bit little endian Linux machine with gcc compiler. Now its upgraded to 64 bit it little endian Linux machine with icc compiler. I am facing lots of run time error which was not there earlier. Can anyone help me out … | |
I ran same code linux and HP platform And the result stored was different. I found that the boundar for comparison is 255. It can be more undersstood from the below code. #include <stdio.h> int main() { FILE *fp=fopen("linux2.txt","wb"); int a = 100; int c=0; int i=0; for (i=0; i … | |
Hi All, While running a piece of code on Linux and HP i found the differenc in the result. Can Anyone Explain Why it is giving different results? #include <stdio.h> int main() { int a = 0; int b = 30030; int c = 34094; int d = 0 ; … | |
Re: I think the problem constraint is to use only while loop for iteration not any othyer loop. In that case you can modify the logic as below #include <stdio.h> int main(void) { int miles; float gallons = -1, mg, overall = 0, avg = 0; while(gallons != 0) { printf("Enter … | |
A piece of C code was creating core dump. When i simply added a few fprintf statement and printed the value of variales used in code to a file, surprisingly the code ran successfully. I tried the scenario number of times and the result was same "when fprintf was present … | |
Re: You acn't use bitwise operator to double or float. | |
#include <stdio.h> #include <stdlib.h> #include <string.h> main() { char *p1="Name"; const char *p2="Name"; char const *p3="Name"; char *const p4="Name"; const char *const p5="Name"; ++p1; ++*p1; ++p2; ++*p2; ++p3; ++*p3; ++p4; ++*p4; ++p5; ++*p5; } While Compiling above code certain Compilation error came. The errors are: const.c: In function âmainâ: const.c:17: … |
The End.