Do Catholic children near death recieve the Eucharist as Viaticum Canon law says that anointing of the sick is to be done to someone having attained the age of reason, same as reception of the Eucharist and the Sacrament of Penance. 

However, as "Food for the Journey", if a child is near death, do they usually still receive the Eucharist as Viaticum?

If you read the Catholic encyclopedia entry I linked to on viaticum it says that they are. But, I'm not sure if it's outdated because it seems to conflict with Canon Law.  As this answer states younger children receiving communion used to be normal, but not any more, is this the same for Viaticum or is it totally separate from the sacrament of anointing of the sick (other than the fact that they both usually take place before death).
I think your question is covered by Can. 913:

Can.  913 §1. The administration of the Most Holy Eucharist to children requires that they have sufficient knowledge and careful preparation so that they understand the mystery of Christ according to their capacity and are able to receive the body of Christ with faith and devotion.
§2. The Most Holy Eucharist, however, can be administered to children in danger of death if they can distinguish the body of Christ from ordinary food and receive communion reverently.

While that does not explicitly say, &quot;if and only if,&quot; I believe it is fairly clear.

As a side note: when it comes to questions like, &quot;who should receive a sacrament?&quot; the person who really decides is priest (or, occasionally the Eucharistic Minister) present. It could very well be that a 3½ year old or someone outside of the Catholic Church could receive when they are close to death (my son understood the Eucharist was special at 2½, but I doubt a priest would have let him receive...).