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
~8K People Reached
Favorite Tags
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
116
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
482
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
89
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
213
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
536
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
175
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
170
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
580
Member Avatar for ashish2expert

Hi, I have a problem that wants to be calculated only by while loop. (no other loop, no goto, break) Develop a program that will input the miles driven and gallons used for each tankful. The program should calculate and display the miles per gallon obtained for each tankful. After …

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
859
Member Avatar for mangalasadu

#include<stdio.h> #include<math.h> int main() { int num,i,count0=0,count1=0; printf("enter number \n"); scanf("%d",&num); for(i=0;i<32;i++) { if(num &((pow(2,31))>>i)) count1++; else count0++; } printf(" the no. of 0's and 1's in the given number are %d %d",count0,count1); }

Member Avatar for Learningvinit
0
205
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
524