Hello,
I corrected the syntax now.Thanks for your reply
User Profile
Collapse
-
hello,
Sorry i gave the wrong syntax.I understand your point.It was a snippet to just get some basic idea abou type casting.Leave a comment:
-
Typecasting of a unsigned value to signed integer
Hello,
For the snippet below
Code:unsigned int tmp1=65535; unsigned int tmp2=0,tmp3=0; tmp2=(char)tmp1; tmp3=(int)tmp1; printf("tmp1=%u\ntmp2=%u\ntmp3=%u\n",tmp1,tmp2,tmp3);
tmp1=65535
tmp2=255
tmp3=65535
The binary value of 65535 is 1111 1111 1111 1111.
So when we do tmp2=(uint8)tmp 1, the upper 8 bits are not... -
jeyshree replied to select command in mysql returns an empty row even though the entry exist in tablein MySQLhai,
i used a different form of select command to verify user name and password.the code is shown belowCode:<html> <head> <title>login</title> </head> <body> <form action="" method="post"> <strong>user_name: *</strong> <input type="text" name="user_name"> <strong>password: *</strong> <input
Leave a comment:
-
jeyshree replied to select command in mysql returns an empty row even though the entry exist in tablein MySQLif everything is right then y i am not able to find the user name and the respective password.if u know some other syntax please let me knowLeave a comment:
-
jeyshree replied to select command in mysql returns an empty row even though the entry exist in tablein MySQLFor the fourth block of code it returns
"ramya
jeyshree".
For the fifth block of code it returns nothingLeave a comment:
-
jeyshree replied to select command in mysql returns an empty row even though the entry exist in tablein MySQLFor the fourth block of code it returns
"ramya
jeyshree".
For the fifth block of code it returns nothingLeave a comment:
-
jeyshree replied to select command in mysql returns an empty row even though the entry exist in tablein MySQLsir/mam,
that was just an example to show u that commands in such syntax works.but actually i want the password for that particular user name.i edited the post again.please take a lookLeave a comment:
-
jeyshree started a topic select command in mysql returns an empty row even though the entry exist in tablein MySQLselect command in mysql returns an empty row even though the entry exist in table
hai,
I created a database using the SQL command
Code:CREATE TABLE login_table2(user_name VARCHAR(32), first_name VARCHAR(32), last_name VARCHAR(32), password VARCHAR(64));
Code:INSERT INTO login_table2(user_name ,first_name , last_name , password ) VALUES('ramya', 'ramya', 'muthu', 'India');
Then i inserted... -
hai,
found the answer.you need to enable the socket extension in wamp. Click the wamp icon in the taskbar, go to
PHP => PHP extensions and click php_sockets. Make sure it has a tick mark to indicate that it is enabled.
After that restart apache. Now socket functions should work fine.thanks for replying meLeave a comment:
-
Socket programming: Call to undefined function socket_create() error
Hai,
I am new to php socket programming.I have a doubt.Code:<?php if(!($sock = socket_create(AF_INET, SOCK_STREAM, 0))) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("Couldn't create socket: [$errorcode] $errormsg \n"); } echo "Socket created"; ?>
-
hai,
i get you.Will you please say me the way to find the data received in the hyper terminal?thanks for your reply in advance.Leave a comment:
-
linking vb to hyperterminal reg
Hai,
I am doing a project where some data will be sent by the micro controller to computers hyper terminal.I need to fetch the data from the hyper terminal and process the data with the help of VB (which will be connected to the MSACCESS database).Will you please let me know how to fetch the data from the hyper terminal into the visual basic?
Thanks for your reply in advance. -
hai,
do you mean calloc too cant allocate memory when there is no continuous group of memory which is left free.Leave a comment:
-
malloc and calloc reg
Hai,
This situation will never arise in computers.But still to understand the difference between malloc and calloc i just visualised the situation.The situation is"consider the RAM in computer which has only bytes 10000 to 10007 and 10028 and 10029 left free.All other portion of memory are used for other purposes."Now what will happen if i give malloc(10) and calloc(5,2)?
One of my friends said that malloc will not allocate... -
date and time reg
Hai,
I have a doubt thats too basic.When i switch off the computer,the circuitry inside is not powered up.Then next time when i switch on the system how is the date and time displayed correctly?Thank s for your reply. -
header file reg
Hai,
I wrote two functions in separate files named fibonacci.c and factorial.c
Will you please let me know how to place those two functions in a header file named hai.h,so that i can use them in other c files?Thanks for your reply in advance. -
# regarding
Hai,
I have a doubt.Please do look at the snippet below and answer my question.
Code:#include<stdio.h> #include<conio.h> #define f(g,g2) g##g2 main() { int var12=100; clrscr(); printf("%d",f(var,12)); getch(); }
What is the function of # here?Please do clear my doubt.Thanks in advance -
the error shown is "illegal initialisation" .now please explain me the reason for error in first snippet.thanks for your replies.Leave a comment:
-
portability reg
hai,
i developed a vb project(used ms access as my back end) in my desktop.when i want to run the project in some other system is it enough to copy only the exe file?i guess that will not be enough.we have to copy the database also and set the path again when running it in other system.if i make any mistake please do correct me.thanks in advance.
No activity results to display
Show More
Leave a comment: