it is probably beneficial to learn c before c++ because c++ is very daunting at first. writing the basic hello world requires that you understand preprocessor directives, namespaces, operator overloading, r value references, objects, and c style syntax and procedural nature. i think that having a good c foundation would make learning c++ piece by piece much easier. i could be wrong, but this was the case for me. here is the hello world i was referencing.
#include <iostream>
int main()
{
std::cout << "Hello, World!\n";
}