티스토리 뷰
< C/C++ >
sizeof(variable) 가능
< C# >
sizeof(variable) 불가능
sizeof(variable) 가능
#include <iostream>
using namespace std;
void main()
{
int i = 0;
cout << sizeof(i) << endl; // valid
cout << sizeof(int) << endl; // valid
}
using namespace std;
void main()
{
int i = 0;
cout << sizeof(i) << endl; // valid
cout << sizeof(int) << endl; // valid
}
< C# >
sizeof(variable) 불가능
using System;
namespace Sample
{
class Program
{
static void Main(string[] args)
{
int i = 0;
Console.WriteLine(sizeof(i)); // compile time error
Console.WriteLine(sizeof(int)); // valid
}
}
}
namespace Sample
{
class Program
{
static void Main(string[] args)
{
int i = 0;
Console.WriteLine(sizeof(i)); // compile time error
Console.WriteLine(sizeof(int)); // valid
}
}
}
'Code > Study' 카테고리의 다른 글
[PerlNET] Regex (Perl C# Mix) (0) | 2008.11.09 |
---|---|
[Perl] Cocoa (pl pm sample) (0) | 2008.11.09 |
[PerlNET] CIty (Mix Perl & C#) (0) | 2008.11.09 |
[Perl] BeeConverter (Convert HTML Entity to Unicode Character) (0) | 2008.11.09 |
[C/C++ vs C#] static (1) (0) | 2008.07.16 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- WinAutomation
- registry
- c#
- Automation
- AdSense감추기
- windows
- 유틸리티
- 애드센스감추기
- iTextSharp
- Phalanger
- READYSTATE_COMPLETE
- tagREADYSTATE
- download.com
- Microsoft
- 애드센스숨기기
- Rollback Rx
- iText
- java
- Service pack
- jre
- .net framework
- 스크린캡쳐
- AdSense숨기기
- ScreenHunter
- autohotkey
- DotNetMagic
- Regular Expressions
- Sample Code
- AxWebBrowser
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
글 보관함