Click here to Skip to main content
15,905,914 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Strange chars Pin
Victor Nijegorodov29-Apr-20 22:38
Victor Nijegorodov29-Apr-20 22:38 
GeneralRe: Strange chars Pin
_Flaviu3-May-20 3:35
_Flaviu3-May-20 3:35 
GeneralRe: Strange chars Pin
Victor Nijegorodov3-May-20 4:37
Victor Nijegorodov3-May-20 4:37 
GeneralRe: Strange chars Pin
Richard MacCutchan29-Apr-20 23:25
mveRichard MacCutchan29-Apr-20 23:25 
GeneralRe: Strange chars Pin
_Flaviu29-Apr-20 23:34
_Flaviu29-Apr-20 23:34 
GeneralRe: Strange chars Pin
kalberts29-Apr-20 23:50
kalberts29-Apr-20 23:50 
GeneralRe: Strange chars Pin
_Flaviu30-Apr-20 2:35
_Flaviu30-Apr-20 2:35 
GeneralRe: Strange chars Pin
Richard MacCutchan30-Apr-20 0:04
mveRichard MacCutchan30-Apr-20 0:04 
GeneralRe: Strange chars Pin
_Flaviu30-Apr-20 3:01
_Flaviu30-Apr-20 3:01 
GeneralRe: Strange chars Pin
Richard MacCutchan30-Apr-20 3:40
mveRichard MacCutchan30-Apr-20 3:40 
QuestionRe: Strange chars Pin
David Crow30-Apr-20 3:50
David Crow30-Apr-20 3:50 
AnswerRe: Strange chars Pin
Richard MacCutchan30-Apr-20 4:02
mveRichard MacCutchan30-Apr-20 4:02 
GeneralRe: Strange chars Pin
Victor Nijegorodov30-Apr-20 5:55
Victor Nijegorodov30-Apr-20 5:55 
GeneralRe: Strange chars Pin
Richard MacCutchan30-Apr-20 6:00
mveRichard MacCutchan30-Apr-20 6:00 
GeneralRe: Strange chars Pin
David Crow30-Apr-20 3:50
David Crow30-Apr-20 3:50 
GeneralRe: Strange chars Pin
_Flaviu30-Apr-20 6:09
_Flaviu30-Apr-20 6:09 
GeneralRe: Strange chars Pin
kalberts30-Apr-20 17:45
kalberts30-Apr-20 17:45 
GeneralRe: Strange chars Pin
Richard MacCutchan1-May-20 4:02
mveRichard MacCutchan1-May-20 4:02 
GeneralRe: Strange chars Pin
_Flaviu1-May-20 4:48
_Flaviu1-May-20 4:48 
GeneralRe: Strange chars Pin
_Flaviu3-May-20 5:21
_Flaviu3-May-20 5:21 
GeneralRe: Strange chars Pin
Richard MacCutchan7-May-20 4:34
mveRichard MacCutchan7-May-20 4:34 
QuestionPassing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 1:16
Calin Negru28-Apr-20 1:16 
AnswerRe: Passing an array as argument to a function (2) Pin
Richard MacCutchan28-Apr-20 2:40
mveRichard MacCutchan28-Apr-20 2:40 
GeneralRe: Passing an array as argument to a function (2) Pin
Calin Negru28-Apr-20 3:08
Calin Negru28-Apr-20 3:08 
GeneralRe: Passing an array as argument to a function (2) Pin
k505428-Apr-20 3:23
mvek505428-Apr-20 3:23 
fearless_ wrote:
When you can do the same thing in several ways something is not right

I can only imagine the following program will blow your mind:
C++
#include <stdio.h>

int main()
{
    int a[] = { 0, 1, 2, 3, 4, 5, 6, 7};
    int i1 = a[2];
    int i2 = 2[a];

    printf("i1 = %d  i2 = %d\n", i1, i2);

    return 0;
}
Keep Calm and Carry On

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.