Thanks for the replies...
I have not mentioned the headers here , though I have them while executing .No initializations to 1 were made.
Type: Posts; User: sanddune008
Thanks for the replies...
I have not mentioned the headers here , though I have them while executing .No initializations to 1 were made.
why does the output of value of b = 1 ?
I have below code:
class test
{
int a;
public:
int b;
> (In Assignment scenario)Does that mean the compiler will take care of converting from float to int, which means that it take care of converting existing representation [S][Exponential][Mantissa]...
> (In Assignment scenario)Does that mean the compiler will take care of converting from float to int, which means that it take care of converting existing representation [S][Exponential][Mantissa]...
Is it something to do with the way floating point numbers are represented?
But why typecasting it like this d=(float)i; gives an right value?
I am too confused......
I am not able to figure out the knowledge gap for the below piece of code.
I assume that the float variable to have an value equal to that of i , but it always prints 0.000. Am I missing...
Hi All,
Following code :
int main()
{
int ar[][5]= {{1,2,3,4,5},{6,7,8,9,10}};
Thanks for the reply
My confusion was with the "above highlighted line"
Why didn't we initialize the line with the below line:
E_NetworkStatus lNetworkStatus = *(E_NetworkStatus *)ptr ;
I Have a code snippet
#include <string.h>
#include <stdio.h>
typedef enum {
e_NW_NFY_ID_UNKNOWN = 0,
e_NW_NFY_ID_ETHERNET_PLUGIN, /*< Ethernet cable plugged in,...
Ah!!! i didnt see the limit 10......Thanks for the quick reply.....I will not paste the plain txt nxt time.....
Its just replaces :
For Input :192.168.5.59/mydirectoryname/php
int Formulate_StaticURL(char *finalstring,char *inputstring,int len)
{
int i=0;
char *fileextension = inputstring+len-1,fileextn[10];
memset(fileextn,'\0',10); ...
Hi,
I would like to know ,is there any open sources available to do the conversion from UTF8 to Unicode(16-bit) and vice versa..
Also i would like to know how can i integrate that...
I may have to investigate why the directory is not getting created........
What i don't get is how come it was working these days and all of a sudden it stop? anyways i will try to figure this out.
Thanks Nominal Animal for your time!!!!!
Its working without creating an directory under the root(using mkdir).Now I am creating the file directly under the root directory and it is working.
I...
Thanks to all for your time and prompt reply......Let me digest all your comments and come back on this.......
can anyone help me debug the problem?
Hi,
Problem statement:
I have to retain a value....Hence i am storing the same to flash using fwrite and fread operations(Os Linux).
Observarion:
1. As soon as the data is written(fwrite) i...
yes.............Its returning the same as the one which is hardcoded(As i have written the hardcoded value to file).
Hi,
Following is the code i have been checking...
void createsocket()
{
struct sockaddr_in server_addr;
unsigned int port = 0;
Hi All,
I have a issue, where i am able to allocate memory using the malloc. While printing in logs ,i am able to see the address being assigned as well.
But When, like say 500ms into...
Thanks.....
Following is the source:
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include "string.h"
#define HTTP_URI_FMT "http://%s:%lu/%s"
#define IPCOMP(addr, n) ((addr >> (24 - 8 * n)) & 0xFF)
#define IP_ADDR_LEN 20
int main()
{
unsigned long...
I am passing the baseAddress to fwrite();
Kindly help me with a compilable statement for the above fwrite.
Thanks in advance
I have a following piece of code for writing to file:
#include "stdio.h"
#define MAXITEMS (10)
typedef struct{