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
~907 People Reached
Favorite Forums
Favorite Tags
Member Avatar for saurav2007

#include<iostream> using namespace std; int &fun() { static int x = 10; return x; } int main() { fun() = 30; cout << fun(); return 0; } Output is 30 why not 10? please explain me the concept of Lvalue.. Thank you in advanvce.

Member Avatar for Ancient Dragon
0
276
Member Avatar for saurav2007

While creating a database..Is the data transfered directly from the user-input into the database or transfered to a buffer and final transfer from buffer to database is done..? Plz answer it..

Member Avatar for deceptikon
0
92
Member Avatar for saurav2007

# /*Given an array arr[] of n integers, construct a Product Array prod[] (of same size) such that prod[i] is equal to the product of all the elements of arr[] except arr[i]. My code is printing garbage value.Pls someone suggest me what is wrong and how can I correct it..Thank …

Member Avatar for parag29081973
0
230
Member Avatar for saurav2007

I got the problem with this code.. can anyone explain me the output.. main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) );}

Member Avatar for saurav2007
0
121
Member Avatar for saurav2007

Hi i got some problems with c pointers...feelin trouble to get through it..here is a problem .anyone plz explain the solutin to me.. #include<stdio.h> main() { int arr[3]={2,3,4}; char *p=arr; p=(char*)((int*)(p)); printf("%d",*p); p=(int*)(p+1); printf("%d",*p); }

Member Avatar for cse.avinash
0
188