- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
22 Posted Topics
According to me delete querry of sql does not return anything.Whether the querry is correct or not could be checked by values in database...Insert/delete querries don't return any value
in the following code how does the compiler comes to know that it has to call the postfix function class Digit { private: int m_nDigit; public: Digit(int nDigit=0) { m_nDigit = nDigit; } Digit& operator++(); // prefix Digit& operator--(); // prefix Digit operator++(int); // postfix Digit operator--(int); // postfix int …
try by writing $q = "DELETE FROM tUserFavourites WHERE ThreadID='".$TID."' AND Username='".$UID."';";
can anyone tell the output of following code and also explain it #include<stdio.h> #include<stdlib.h> union employee { char name[15]; int age; float salary; }; const union employee e1; int main() { strcpy(e1.name, "K"); printf("%s %d %f", e1.name, e1.age, e1.salary); return 0; }
if I write the following code.. float a =1.3; double b=1.3; if(a>b) printf("hii"); else printf("hello"); the o/p comes hii...but if I change the values to 1.7 the output comes hello...can any1 explain the reason????if precision is to be taken into account then everytime double should be greater..
int n; scanf("%d\n", &n); printf("you typed %d\n", n); it seems to hang until I type one extra line of input....Can anyone explain this behaviour
char str[]="qwerty"; char *p="qwerty"; str++; \\error *str='a'; \\works p++; \\works *p='k'; \\error when you perform the operation str++..an error occurs ..this is because in c name of an array represents the starting address of an array...and the compiler remembers the starting address as that is the only information compiler has …
if you use getch() in any program then you can enter any character but that character is never echoed on output screen but in case of getche ...the char is echoed...u can find the difference by implementing it yourself
can anyone tell me whether we can use const variables for case ...eg I wrote the following code: const int i=2; int j=0; switch(1) { case i:printf("hii"); } now ...this snippet is running properly in turbo c but not in dev cpp... likewise if we use this const variable as …
write scanf("%d",n); like scanf("%d",&n); & insert a semicolon after stmnt:p=i*i;
if we print a float using %d garbage value is printed....but if we scan a float value using %d & int...the value gets truncated...What is the reason behind it...
When is the garbage colletor called in c...Like in the following code int main() { int *i; int *fun(); i=fun(); printf("%d\n",*i); printf("%d\n",*i); } int *fun() { int k=12; return(&k); } the address being returned is of a variable that is no longer available....but printf statement prints 12 first time and …
how are float values exactly represented in memory......
hello everyone, I am developing an application for my project... My application works correctly when I run it on applet viewer...But when i try to run it with the help of html page ..the code does not run and gives an erron java.security.accessdenied exception.... Actually i have loaded an image …
i m unable to interrpret my package from any other drive???? i mean ..i hav created my package, compiled it bt unable to run it... can anyone tl d way of running it or setting the path... the coding is done in command prompt
can anyone suggst a link where i cud find the list of various packages and classes already defined in java library
hiii, i want to ask .. why do we basically use servers.. wat is the basic requirement for making of servers and wat r the mainly used servers and their advantage.... sry if my question is tooo easy but i m unable to get a satisfactory answer for this questio.. …
first let the user enter the string. then find out the no. of characters in that string. better if u store that string in array.now run the loop and compare each character with a,e,i,.o,u.if it is same increment the value of counter variable by 1 else not.
according to me if u wanna find the place where string is stored u can cin the string in an array and then reinitialize it with zero everytime. n u have forgotten to write the return 0;statement also.
in one of the question for beginners a program for moving a file was asked. i cud not find the algo can anyone suggest me the algo????????????
i wud suggest u to read book by sumita arora .she is an indian author but her language is simple so beginners cud easily get it.
[QUOTE=mythili_sharon;1092996]i need the difference between i++ and ++i, where is i++ used and where ++i is used[/QUOTE] ++i means increment the value of i by 1 n then use it. "change the value n then use" i++ means use the value of i as it is and after using increment …
The End.
manishanibhwani