If you can't (or don't want to ) use an array, you can assign the variables to a pointer array:


#include <stdio.h>

int main() {
int a=1, b=4, c=9, *ray[3], i;
ray[0]=&a; ray[1]=&b;...