main()
{
int temp = 3;
int x = sizeof(temp++);
printf("%d\n", temp);
}
In the above piece of code. I find that variable temp is not changed after sizeof operation. Can anyone tell me what is the reason for this.
User Profile
Collapse
-
why sizeof is not changing the value
-
#define CALL(FUNCTION,R ET,...){PrintIn fo(__FUNCTION__ ,#FUNCTION);RET =FUNCTION(__VA_ ARGS__);}
Thanks Savage.. Im looking to get a macro like this.. This will be good input for me. -
Is there any to know which has called my function
Hi all,
can anyone tell me the way to know which function has called my function, i.e., I want to know the calling function name in my function. Is there any predefined macro like __FUNCTION__ to know the called function
Thanks in Advance -
How to reduce unwanted space in VMWare
Hai,
I have installed VMWare Player in a dedicated parition in Windows which is of size 20GB... Im using a Debian Image for VMWare.. initally complete size of the folder where in all .vmdb file exists is of 14GB...
Now when I see the complete file system's is of size 17GB but in windows the complete folder is showing 20GB.. I think the VMWare is not removing the unused .vmdk files..
what should I do to optmize the disk... -
Thanks for the reply.. it is working..
But my question is.. if the exit is so required for C program.. then even if we dont give the exit in main function.. it doesnt give any seg. fault..
What is the reason behind this????...Leave a comment:
-
This is the test program I have written and compiled with
$>cc -e test test.c -o test
#include <stdio.h>
int test(void)
{
printf("Hai\n") ;
main();
return 1;
}
main()
{
printf("OK\n");
}
The output is as follows :
Hai
OK
Segmentation fault
...Leave a comment:
-
Thanks Plater Ive got some stuff which I can start.. I have downloaded WMICodeCreator from microsoft website.. It's very handy and learning from that......Leave a comment:
-
Thanks for the reply...
I'm very new to C#,I just started learning on my own... can you give me some references where I can start learning the WMI stuff....Leave a comment:
-
how to enter in a windows pc in my LAN using C# or VB.Net
Hai, Im new to C# and VB.Net.. I want to write a windows based application like LAN Search Pro, which searches for files or folders in the LAN. Can anyone give me an idea to do this.. so that i can get idea of C#/Vb.Net and also on networking..
Thanks in advance -
maheshgupta024 started a topic using php can i enter into different computers from network within my LANin PHPusing php can i enter into different computers from network within my LAN
Im very new to PHP, and interseted in network stuff, using php can i enter into different computers from network within my LAN.
Can anyone help on this..
Thanks in Advance -
sorry for delayed reply.. Im working as developer, we develop applications in Linux OS, so i want to know in linux...Leave a comment:
-
yes.. I want to write a function which provide the same functionality.. .Leave a comment:
-
How to change the entry point main() in c langauge
Can anyone give me the solution, for changing the entry point instead of main function. -
How to implement sizeof operator in C
Can anyone tell me how to implement sizeof in C language
No activity results to display
Show More
Leave a comment: