Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

temporary variable ex c++

#include <stdio.h>

int main()
{
    int a = 5;
    int b = 10;
    int t;
    t = a;
    a = b;
    b = t;
    printf("
 a = %d", a);
    printf("
 b = %d", b);
    return 0;
}
Source by techstackjournal.com #
 
PREVIOUS NEXT
Tagged: #temporary #variable
ADD COMMENT
Topic
Name
3+3 =