Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #4K
~9K People Reached
Favorite Tags
c x 24
c++ x 3

13 Posted Topics

Member Avatar for Learningvinit

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 …

Member Avatar for deceptikon
0
119
Member Avatar for Learningvinit

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;

Member Avatar for Learningvinit
0
522
Member Avatar for Learningvinit

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?

Member Avatar for pritaeas
0
90
Member Avatar for Learningvinit
Member Avatar for nitin1
0
2K
Member Avatar for Learningvinit

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?

Member Avatar for L7Sqr
0
220
Member Avatar for Learningvinit

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 …

Member Avatar for L7Sqr
0
541
Member Avatar for Learningvinit

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 …

Member Avatar for rubberman
0
177
Member Avatar for Learningvinit

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 …

Member Avatar for Learningvinit
0
176
Member Avatar for Learningvinit

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 ; …

Member Avatar for Learningvinit
0
599
Member Avatar for ashish2expert

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 …

Member Avatar for ashish2expert
0
3K
Member Avatar for Learningvinit

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 …

Member Avatar for Learningvinit
0
873
Member Avatar for mangalasadu
Member Avatar for Learningvinit

#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: …

Member Avatar for nitin1
0
545

The End.